Skip to content

Commit bc21f24

Browse files
committed
ci: run tests with explicitly specified env vars
The previous one is: ```cmake execute_process( COMMAND cmake --build build --target tests TEST_FLAGS="--xml --xmlxsd --xhtml --qhp --docbook --rtf" RESULT_VARIABLE result ) ``` Which makes me confuse: 1. Not clear about `TEST_FLAGS` is an env var 2. The specified `TEST_FLAGS` is not working on Windows prompt, i.e. testing/runtests.py got empty `TEST_FLAGS`
1 parent 0ea6a23 commit bc21f24

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build_cmake.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,9 @@ jobs:
369369
set(ENV{CTEST_OUTPUT_ON_FAILURE} "ON")
370370
371371
execute_process(
372-
COMMAND cmake --build build --target tests TEST_FLAGS="--xml --xmlxsd --xhtml --qhp --docbook --rtf"
372+
COMMAND
373+
cmake -E env TEST_FLAGS="--xml --xmlxsd --xhtml --qhp --docbook --rtf"
374+
cmake --build build --target tests
373375
RESULT_VARIABLE result
374376
)
375377
if (NOT result EQUAL 0)
@@ -383,7 +385,9 @@ jobs:
383385
set(ENV{CTEST_OUTPUT_ON_FAILURE} "ON")
384386
385387
execute_process(
386-
COMMAND cmake --build build --target tests TEST_FLAGS="--xml --xmlxsd --xhtml --qhp --docbook --rtf --pdf"
388+
COMMAND
389+
cmake -E env TEST_FLAGS="--xml --xmlxsd --xhtml --qhp --docbook --rtf --pdf"
390+
cmake --build build --target tests
387391
RESULT_VARIABLE result
388392
)
389393
if (NOT result EQUAL 0)

0 commit comments

Comments
 (0)