Skip to content

Commit 324c776

Browse files
committed
Fix for running doc test script outside Planemo project directory.
To enable planemo-machine testing of documentation examples.
1 parent 6e68144 commit 324c776

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/run_doc_test.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,10 @@ fi
2626
planemo --verbose conda_init || true
2727
export PATH="$HOME/miniconda3/bin:$PATH"
2828

29-
bash docs/tests/tests_"${DOCS}".sh
29+
PLANEMO_DOC_TEST_PATH="docs/tests/tests_${DOCS}.sh"
30+
if [ -f $PLANEMO_DOC_TEST_PATH ];
31+
then
32+
bash "$PLANEMO_DOC_TEST_PATH"
33+
else
34+
bash <(curl -s "https://raw.githubusercontent.com/galaxyproject/planemo/master/$PLANEMO_DOC_TEST_PATH")
35+
fi

0 commit comments

Comments
 (0)