ci: use --test-list when running piglit

Instead of manually looping over the file, pass the file to the runner.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Elie Tournier <elie.tournier@collabora.com>
macos/master
Emil Velikov 6 years ago committed by Gert Wollny
parent f407223e4c
commit d5216bde25
  1. 13
      ci/run_test_suite.sh

@ -246,18 +246,17 @@ run_test_suite()
PIGLIT_TESTS=" -x glx" PIGLIT_TESTS=" -x glx"
if [ $VERIFY_UNRELIABLE_TESTS -eq 1 ]; then if [ $VERIFY_UNRELIABLE_TESTS -eq 1 ]; then
UNRELIABLE_TESTS=$(cat $IGNORE_TESTS_FILE 2>/dev/null) # XXX: Fold the glx exception?
PIGLIT_TESTS_CMD="--test-list $TEST_FILE"
for UNRELIABLE_TEST in $UNRELIABLE_TESTS; do
PIGLIT_TESTS="$PIGLIT_TESTS -t $UNRELIABLE_TEST"
done
else else
PIGLIT_TESTS="$PIGLIT_TESTS -t $TEST_NAME" # TODO: create test_file for normal runs
PIGLIT_TESTS_CMD="$PIGLIT_TESTS -t $TEST_NAME"
fi fi
piglit run --platform x11_egl \ piglit run --platform x11_egl \
-l verbose \ -l verbose \
$PIGLIT_TESTS \ $PIGLIT_TESTS_CMD \
gpu \ gpu \
/tmp/ &> $LOG_FILE /tmp/ &> $LOG_FILE

Loading…
Cancel
Save