Skip to content

Commit bc6a576

Browse files
authored
Absolute path for --reports-dir, --skip-list in test-triton.sh (#3032)
The script `test-triton.sh` changes directories during the execution, so --reports-dir, --skip-list should be absolute paths. Fixes #3031.
1 parent 8d16f1c commit bc6a576

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/test-triton.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ while [ -v 1 ]; do
9696
;;
9797
--reports-dir)
9898
TRITON_TEST_REPORTS=true
99-
TRITON_TEST_REPORTS_DIR="$2"
99+
# Must be absolute
100+
TRITON_TEST_REPORTS_DIR="$(mkdir -p "$2" && cd "$2" && pwd)"
100101
shift 2
101102
;;
102103
--warning-reports)
@@ -108,7 +109,8 @@ while [ -v 1 ]; do
108109
shift
109110
;;
110111
--skip-list)
111-
TRITON_TEST_SKIPLIST_DIR="$2"
112+
# Must be absolute
113+
TRITON_TEST_SKIPLIST_DIR="$(mkdir -p "$2" && cd "$2" && pwd)"
112114
shift 2
113115
;;
114116
--help)

0 commit comments

Comments
 (0)