Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

Commit 5b30774

Browse files
authored
fix TEST_TO_RUN in ngx_pagespeed (#1364)
Eventually we'll convert remote_config_system_test.sh and nginx_system_test.sh to use run_test, but until then when TEST_TO_RUN is specified we should skip the tests in those files and just run system/system_test.sh
1 parent f78058b commit 5b30774

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/nginx_system_test.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,13 @@ fi
369369
# wants different ones than we want, so we need to reset our positional args.
370370
set -- "$PRIMARY_HOSTNAME"
371371
source $SYSTEM_TEST_FILE
372+
373+
# If we were only asked to run a single test, it ran in SYSTEM_TEST_FILE, so
374+
# we're done now and should exit.
375+
if [ -n ${TEST_TO_RUN+x} ]; then
376+
check_failures_and_exit
377+
fi
378+
372379
source $REMOTE_CONFIG_TEST_FILE
373380

374381
# nginx-specific system tests

0 commit comments

Comments
 (0)