From 9fd4c0216f7f576cfafad01e8842be40d3e1c475 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 18 Dec 2018 18:22:33 +0100 Subject: sanity/005examples: do not try if python is not available. --- testsuite/sanity/005examples/testsuite.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'testsuite/sanity') 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 -- cgit v1.2.3