testsuite: ### bug #39360: --joblog does not work with --pipe.

This commit is contained in:
Ole Tange 2013-07-04 17:31:36 +02:00
parent 8f26244149
commit 111fa14f57
4 changed files with 19 additions and 5 deletions

View file

@ -3657,7 +3657,7 @@ sub starttime {
# Returns:
# UNIX-timestamp this job started
my $self = shift;
return $self->{'starttime'};
return sprintf("%.3f",$self->{'starttime'});
}
sub set_starttime {

View file

@ -20,6 +20,6 @@ echo '### -l -n with pipe'
seq 14 | parallel --pipe -k -l 3 -n 2 'cat;echo 6 ln line record'
echo '### bug #39360: --joblog does not work with --pipe'
seq 100 | parallel --joblog - --pipe wc
seq 100 | parallel --joblog - --pipe wc | tr '0-9' 'X'
EOF

View file

@ -0,0 +1,14 @@
#!/bin/bash
echo '### Test --env all chars except \n,\92,\160 - single and double - no output is good'
# 92 and 160 are special for csh
# This is slow but good for debugging
# perl -e 'for(1..9,9,11..91,91,93..159,159,161..255) { printf "%c%c %c%d\0",$_,$_,$_,$_ }' | stdout parallel --nice 10 -j4 -k -I // --arg-sep _ -0 V=// V2=V2=// parallel --retries 3 -k -j1 -S :,1/lo,1/tcsh@lo,1/csh@lo --env V,V2 echo \''"{}$V$V2"'\' ::: {#} {#} {#} {#} | uniq -c | grep -v ' 4 '|grep -v xauth |grep -v X11
# This is fast
perl -e 'for(1..9,9,11..91,91,93..159,159,161..255) { printf "%c",$_ } printf "\0"' |
stdout parallel -k -I // --arg-sep _ -0 V=// V2=V2=// parallel -k -S 1/:,1/lo,1/tcsh@lo,1/csh@lo --onall --env V,V2 echo \''"{}$V$V2"'\' ::: {#} | uniq -c | grep -v ' 4 '|grep -v xauth |grep -v X11
echo '### bug #37262: --slf + --filter-hosts fails'
parallel --nonall --filter-hosts --sshloginfile <(echo localhost) echo OK

View file

@ -89,7 +89,7 @@ echo '### -l -n with pipe'
6 ln line record
echo '### bug #39360: --joblog does not work with --pipe'
### bug #39360: --joblog does not work with --pipe
seq 100 | parallel --joblog - --pipe wc
seq 100 | parallel --joblog - --pipe wc | tr '0-9' 'X'
Seq Host Starttime Runtime Send Receive Exitval Signal Command
1 : 1372951218.155 0.246 0 0 0 0 wc
100 100 292
X : XXXXXXXXXX.XXX X.XXX X X X X wc
XXX XXX XXX