Skip to content

Commit ddc026f

Browse files
authored
Strip colons from all test result filenames
The upload artifact functionality in github can't handle colons in filenames. The current code handles this for files under the most recent set of results. With the ability to rerun failed tests, now there can be multiple sets of results, and they all need to be processed in the same way. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Nguyen <tony.nguyen@delphix.com> Signed-off-by: John Kennedy <john.kennedy@delphix.com> Closes #12815
1 parent 77e2756 commit ddc026f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/zfs-tests-functional.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
sudo cp /var/log/syslog $RESULTS_PATH/
7474
sudo chmod +r $RESULTS_PATH/*
7575
# Replace ':' in dir names, actions/upload-artifact doesn't support it
76-
for f in $(find $RESULTS_PATH -name '*:*'); do mv "$f" "${f//:/__}"; done
76+
for f in $(find /var/tmp/test_results -name '*:*'); do mv "$f" "${f//:/__}"; done
7777
- uses: actions/upload-artifact@v2
7878
if: failure()
7979
with:

.github/workflows/zfs-tests-sanity.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
sudo cp /var/log/syslog $RESULTS_PATH/
7070
sudo chmod +r $RESULTS_PATH/*
7171
# Replace ':' in dir names, actions/upload-artifact doesn't support it
72-
for f in $(find $RESULTS_PATH -name '*:*'); do mv "$f" "${f//:/__}"; done
72+
for f in $(find /var/tmp/test_results -name '*:*'); do mv "$f" "${f//:/__}"; done
7373
- uses: actions/upload-artifact@v2
7474
if: failure()
7575
with:

0 commit comments

Comments
 (0)