From f613b12721b34a64b4851020b3f1c70763cb310b Mon Sep 17 00:00:00 2001 From: Ole Tange Date: Mon, 4 Aug 2014 15:25:34 +0200 Subject: [PATCH] Testsuite for bug #42892: parallel -a nonexiting --pipepart. --- testsuite/tests-to-run/parallel-local22.sh | 5 ++++- testsuite/wanted-results/parallel-local22 | 8 ++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/testsuite/tests-to-run/parallel-local22.sh b/testsuite/tests-to-run/parallel-local22.sh index 34e965f5..01c11a95 100755 --- a/testsuite/tests-to-run/parallel-local22.sh +++ b/testsuite/tests-to-run/parallel-local22.sh @@ -62,10 +62,13 @@ echo '### bug #42893: --block should not cause decimals in cat_partial' parallel --dry-run -kvv --pipepart --block 0.12345M -a /tmp/parallel-decimal true; rm /tmp/parallel-decimal -echo '###bug #42902: profiles containing arguments with space' +echo '### bug #42902: profiles containing arguments with space' echo "--rpl 'FULLPATH chomp(\$_=\"/bin/bash=\".\`readlink -f \$_\`);' " > ~/.parallel/FULLPATH; parallel -JFULLPATH echo FULLPATH ::: $0 +echo '### bug #42892: parallel -a nonexiting --pipepart' + parallel --pipepart -a nonexisting wc + EOF # TODO This is too unstable diff --git a/testsuite/wanted-results/parallel-local22 b/testsuite/wanted-results/parallel-local22 index 1a4cf5c2..f6af8d50 100644 --- a/testsuite/wanted-results/parallel-local22 +++ b/testsuite/wanted-results/parallel-local22 @@ -81,7 +81,11 @@ echo '### bug #42893: --block should not cause decimals in cat_partial' 32768 ? 32768 : $left))){ $left -= $read; syswrite(STDOUT,$buf); } }' 0 0 258899 129450|(true) 32768 ? 32768 : $left))){ $left -= $read; syswrite(STDOUT,$buf); } }' 0 0 388349 129450|(true) 32768 ? 32768 : $left))){ $left -= $read; syswrite(STDOUT,$buf); } }' 0 0 517799 71096|(true) -echo '###bug #42902: profiles containing arguments with space' -###bug #42902: profiles containing arguments with space +echo '### bug #42902: profiles containing arguments with space' +### bug #42902: profiles containing arguments with space echo "--rpl 'FULLPATH chomp(\$_=\"/bin/bash=\".\`readlink -f \$_\`);' " > ~/.parallel/FULLPATH; parallel -JFULLPATH echo FULLPATH ::: $0 /bin/bash=/bin/bash +echo '### bug #42892: parallel -a nonexiting --pipepart' +### bug #42892: parallel -a nonexiting --pipepart + parallel --pipepart -a nonexisting wc +parallel: Error: Cannot open input file `nonexisting': No such file or directory.