Skip to content

Commit

Permalink
ci: set nullglob before using a wildcard in a for loop when copying t…
Browse files Browse the repository at this point in the history
…est results
  • Loading branch information
andreasgerstmayr committed Oct 1, 2020
1 parent ae8b57e commit 2e5d08b
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/ci/platforms/centos6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@ tasks:
copy_test_artifacts: |
cp /var/lib/pcp/testsuite/check.timings ./artifacts/test
[ $(awk 'END{print NF}' ./artifacts/test/check.timings) = 2 ] && date '+%s' >> ./artifacts/test/check.timings
shopt -s nullglob
for test in /var/lib/pcp/testsuite/*.out.bad; do cp $test ${test/.out.bad/.full} ./artifacts/test || true; done
1 change: 1 addition & 0 deletions build/ci/platforms/centos7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@ tasks:
copy_test_artifacts: |
cp /var/lib/pcp/testsuite/check.timings ./artifacts/test
[ $(awk 'END{print NF}' ./artifacts/test/check.timings) = 2 ] && date '+%s' >> ./artifacts/test/check.timings
shopt -s nullglob
for test in /var/lib/pcp/testsuite/*.out.bad; do cp $test ${test/.out.bad/.full} ./artifacts/test || true; done
1 change: 1 addition & 0 deletions build/ci/platforms/centos8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,5 @@ tasks:
copy_test_artifacts: |
cp /var/lib/pcp/testsuite/check.timings ./artifacts/test
[ $(awk 'END{print NF}' ./artifacts/test/check.timings) = 2 ] && date '+%s' >> ./artifacts/test/check.timings
shopt -s nullglob
for test in /var/lib/pcp/testsuite/*.out.bad; do cp $test ${test/.out.bad/.full} ./artifacts/test || true; done
1 change: 1 addition & 0 deletions build/ci/platforms/debian10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ tasks:
copy_test_artifacts: |
cp /var/lib/pcp/testsuite/check.timings ./artifacts/test
[ $(awk 'END{print NF}' ./artifacts/test/check.timings) = 2 ] && date '+%s' >> ./artifacts/test/check.timings
shopt -s nullglob
for test in /var/lib/pcp/testsuite/*.out.bad; do cp $test ${test/.out.bad/.full} ./artifacts/test || true; done
1 change: 1 addition & 0 deletions build/ci/platforms/debian11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,5 @@ tasks:
copy_test_artifacts: |
cp /var/lib/pcp/testsuite/check.timings ./artifacts/test
[ $(awk 'END{print NF}' ./artifacts/test/check.timings) = 2 ] && date '+%s' >> ./artifacts/test/check.timings
shopt -s nullglob
for test in /var/lib/pcp/testsuite/*.out.bad; do cp $test ${test/.out.bad/.full} ./artifacts/test || true; done
1 change: 1 addition & 0 deletions build/ci/platforms/fedora31.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@ tasks:
copy_test_artifacts: |
cp /var/lib/pcp/testsuite/check.timings ./artifacts/test
[ $(awk 'END{print NF}' ./artifacts/test/check.timings) = 2 ] && date '+%s' >> ./artifacts/test/check.timings
shopt -s nullglob
for test in /var/lib/pcp/testsuite/*.out.bad; do cp $test ${test/.out.bad/.full} ./artifacts/test || true; done
1 change: 1 addition & 0 deletions build/ci/platforms/fedora32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@ tasks:
copy_test_artifacts: |
cp /var/lib/pcp/testsuite/check.timings ./artifacts/test
[ $(awk 'END{print NF}' ./artifacts/test/check.timings) = 2 ] && date '+%s' >> ./artifacts/test/check.timings
shopt -s nullglob
for test in /var/lib/pcp/testsuite/*.out.bad; do cp $test ${test/.out.bad/.full} ./artifacts/test || true; done
1 change: 1 addition & 0 deletions build/ci/platforms/fedora_rawhide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ tasks:
copy_test_artifacts: |
cp /var/lib/pcp/testsuite/check.timings ./artifacts/test
[ $(awk 'END{print NF}' ./artifacts/test/check.timings) = 2 ] && date '+%s' >> ./artifacts/test/check.timings
shopt -s nullglob
for test in /var/lib/pcp/testsuite/*.out.bad; do cp $test ${test/.out.bad/.full} ./artifacts/test || true; done
1 change: 1 addition & 0 deletions build/ci/platforms/ubuntu1604.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,5 @@ tasks:
copy_test_artifacts: |
cp /var/lib/pcp/testsuite/check.timings ./artifacts/test
[ $(awk 'END{print NF}' ./artifacts/test/check.timings) = 2 ] && date '+%s' >> ./artifacts/test/check.timings
shopt -s nullglob
for test in /var/lib/pcp/testsuite/*.out.bad; do cp $test ${test/.out.bad/.full} ./artifacts/test || true; done
1 change: 1 addition & 0 deletions build/ci/platforms/ubuntu1804.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,5 @@ tasks:
copy_test_artifacts: |
cp /var/lib/pcp/testsuite/check.timings ./artifacts/test
[ $(awk 'END{print NF}' ./artifacts/test/check.timings) = 2 ] && date '+%s' >> ./artifacts/test/check.timings
shopt -s nullglob
for test in /var/lib/pcp/testsuite/*.out.bad; do cp $test ${test/.out.bad/.full} ./artifacts/test || true; done
1 change: 1 addition & 0 deletions build/ci/platforms/ubuntu2004.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,5 @@ tasks:
copy_test_artifacts: |
cp /var/lib/pcp/testsuite/check.timings ./artifacts/test
[ $(awk 'END{print NF}' ./artifacts/test/check.timings) = 2 ] && date '+%s' >> ./artifacts/test/check.timings
shopt -s nullglob
for test in /var/lib/pcp/testsuite/*.out.bad; do cp $test ${test/.out.bad/.full} ./artifacts/test || true; done

0 comments on commit 2e5d08b

Please sign in to comment.