aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/sanity/005examples/testsuite.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/sanity/005examples/testsuite.sh')
-rwxr-xr-xtestsuite/sanity/005examples/testsuite.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/sanity/005examples/testsuite.sh b/testsuite/sanity/005examples/testsuite.sh
index 2cf61446f..452c8bef6 100755
--- a/testsuite/sanity/005examples/testsuite.sh
+++ b/testsuite/sanity/005examples/testsuite.sh
@@ -2,6 +2,12 @@
. ../../testenv.sh
+# Skip the test if python is not available.
+if ! python -V > /dev/null 2>&1; then
+ echo "test skipped, python not found"
+ exit 0
+fi
+
# Extract examples
python extract_vhdl.py hello.vhdl heartbeat.vhdl adder.vhdl adder_tb.vhdl < ../../../doc/using/QuickStartGuide.rst