Skip to content

Commit

Permalink
Running test for timing needs also to ignore smoke_all starting with _
Browse files Browse the repository at this point in the history
  • Loading branch information
cderv committed Oct 18, 2023
1 parent 4941bff commit dcae8ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ if [ "$QUARTO_TEST_TIMING" != "" ] && [ "$QUARTO_TEST_TIMING" != "false" ]; then
# For smoke-all.test.ts, each smoke-all document test needs to be timed.
if [ "$i" == "$SMOKE_ALL_TEST_FILE" ]; then
echo "> Timing smoke-all tests"
SMOKE_ALL_FILES=`find docs/smoke-all/ -type f -name "*.qmd" -o -name "*.ipynb" -o -name "*.md"`
SMOKE_ALL_FILES=`find docs/smoke-all/ -type f -regextype "posix-extended" -regex ".*/[^_][^/]*[.]qmd" -o -regex ".*/[^_][^/]*[.]md" -o -regex ".*/[^_][^/]*[.]ipynb"`
for j in $SMOKE_ALL_FILES; do
echo "${SMOKE_ALL_TEST_FILE} -- ${j}" >> "$QUARTO_TEST_TIMING"
/usr/bin/time -f " %e real %U user %S sys" -a -o ${QUARTO_TEST_TIMING} "${DENO_DIR}/tools/${DENO_ARCH_DIR}/deno" test ${QUARTO_DENO_OPTIONS} ${QUARTO_DENO_EXTRA_OPTIONS} "${QUARTO_IMPORT_ARGMAP}" ${SMOKE_ALL_TEST_FILE} -- ${j}
Expand Down

0 comments on commit dcae8ce

Please sign in to comment.