Skip to content

Commit 54e30ab

Browse files
committed
COLLECTED_TESTS_FILE
1 parent 80567e1 commit 54e30ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/run_standalone_tests.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ set -e
1919
# It can be set through the env variable PL_STANDALONE_TESTS_BATCH_SIZE and defaults to 6 if not set
2020
test_batch_size="${PL_STANDALONE_TESTS_BATCH_SIZE:-6}"
2121
source="${PL_STANDALONE_TESTS_SOURCE:-"lightning"}"
22+
COLLECTED_TESTS_FILE="collected_tests.txt"
2223

2324
# this environment variable allows special tests to run
2425
export PL_RUN_STANDALONE_TESTS=1
@@ -28,7 +29,7 @@ echo "Using defaults: ${defaults}"
2829

2930
# get the list of parametrizations. we need to call them separately. the last two lines are removed.
3031
# note: if there's a syntax error, this will fail with some garbled output
31-
python3 -um pytest -q --collect-only --pythonwarnings ignore 2>&1 > "$COLLECTED_TESTS_FILE"
32+
python3 -um pytest -q --collect-only --pythonwarnings ignore 2>&1 > $COLLECTED_TESTS_FILE
3233
# early terminate if collection failed (e.g. syntax error)
3334
if [[ $? != 0 ]]; then
3435
cat $COLLECTED_TESTS_FILE

0 commit comments

Comments
 (0)