Skip to content

Commit 66bac75

Browse files
authored
Ensure sequential execution of test scripts
Added a wait command to ensure sequential execution of tests.
1 parent cce87f4 commit 66bac75

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/run_tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ for dir in unit sdk auto integration performance; do
3838
chmod 0666 "$stdout" "$stderr"
3939
export OTEL_SHELL_SDK_STDERR_REDIRECT="$stderr"
4040
( timeout $((60 * 60 * 3)) $TEST_SHELL $options "$file" 1> "$stdout" 2> "$stderr" && echo "$file SUCCEEDED" || (echo "$file FAILED" && echo "stdout:" && cat "$stdout" && echo "stderr:" && cat "$stderr" && echo "otlp:" && cat "$OTEL_EXPORT_LOCATION" && touch "$failed_flag" && exit 1) ) 2>&1 | perl -e '$| = 1; print while <>;' &
41+
wait # TODO force sequential for now
4142
[ "$dir" != performance ] || wait
4243
done < <({ find $dir -iname 'test_*.sh'; find $dir -iname 'test_*.'"$SHELL"; } | sort -u)
4344
wait

0 commit comments

Comments
 (0)