mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-25 23:47:53 +00:00
-S + --timeout did not repect --timeout.
This commit is contained in:
parent
8a7f45c6a2
commit
637f5391af
|
@ -101,6 +101,7 @@ if($::opt_nonall or $::opt_onall) {
|
|||
((defined $::opt_g) ? "-g" : ""),
|
||||
((defined @::opt_v) ? "-vv" : ""),
|
||||
((defined $::opt_D) ? "-D" : ""),
|
||||
((defined $::opt_timeout) ? "--timeout ".$::opt_timeout : ""),
|
||||
);
|
||||
::debug("| parallel");
|
||||
open(PARALLEL,"| $0 $options") ||
|
||||
|
@ -113,6 +114,8 @@ if($::opt_nonall or $::opt_onall) {
|
|||
shell_quote_scalar($command)." :::: @argfiles\n";
|
||||
}
|
||||
close PARALLEL;
|
||||
$Global::exitstatus = $? >> 8;
|
||||
debug("--onall exitvalue ",$?);
|
||||
if(@::opt_basefile) { cleanup_basefile(); }
|
||||
unlink(@argfiles);
|
||||
wait_and_exit(min(undef_as_zero($Global::exitstatus),254));
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
cat <<'EOF' | parallel -j0 -k
|
||||
echo '### Test of --eta'
|
||||
seq 1 10 | stdout parallel --eta "sleep 1; echo {}" | wc -l
|
||||
|
||||
|
@ -14,3 +16,7 @@ stdout parallel --progress "sleep 1; echo {}" < /dev/null
|
|||
|
||||
echo '### bug #34422: parallel -X --eta crashes with div by zero'
|
||||
seq 2 | stdout parallel -X --eta echo
|
||||
|
||||
echo '### --timeout on remote machines'
|
||||
parallel -j0 --timeout 3 --onall -S .. 'sleep {}; echo {}' ::: 1 6 7 ; echo $?
|
||||
EOF
|
||||
|
|
|
@ -18,3 +18,7 @@ Computers / CPU cores / Max jobs to run
|
|||
Computers / CPU cores / Max jobs to run
|
||||
1:local / 2 / 1
|
||||
|
||||
### --timeout on remote machines
|
||||
1
|
||||
1
|
||||
2
|
||||
|
|
Loading…
Reference in a new issue