Skip to content

Commit 2e3b720

Browse files
committed
Update examples/example_hello_world_python/run.sh
1 parent a3260cf commit 2e3b720

File tree

1 file changed

+4
-2
lines changed
  • examples/example_hello_world_python

1 file changed

+4
-2
lines changed

examples/example_hello_world_python/run.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ fi
3939
# Construct the command with optional parameters
4040
CMD="python ../../plain2code.py hello_world_python.plain --unittests-script=../../test_scripts/run_unittests_python.sh --conformance-tests-script=../../test_scripts/run_conformance_tests_python.sh ${VERBOSE:+-v} ${RENDER_RANGE:+"--render-range=$RENDER_RANGE"} ${RENDER_FROM:+"--render-from=$RENDER_FROM"} ${API_ENDPOINT:+"--api $API_ENDPOINT"}"
4141

42-
echo "Removing conformance tests folder"
43-
rm -rf conformance_tests
42+
if [ -z "$RENDER_RANGE" ] || [ -z "$RENDER_FROM" ]; then
43+
echo "Removing conformance tests folder"
44+
rm -rf conformance_tests
45+
fi
4446

4547
# Execute the command
4648
$CMD

0 commit comments

Comments
 (0)