aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2018-12-16 07:26:39 +0100
committerTristan Gingold <tgingold@free.fr>2018-12-16 07:26:39 +0100
commit9b3040a5e3c8e74255c2831d6c0e7cb65da34b08 (patch)
tree4f89cdf25ccb23704a7d194d752d9c9ca4dd37d3 /testsuite/gna
parent92e91061ff7f0db968d20896156a7e0e45bd60cf (diff)
downloadghdl-9b3040a5e3c8e74255c2831d6c0e7cb65da34b08.tar.gz
ghdl-9b3040a5e3c8e74255c2831d6c0e7cb65da34b08.tar.bz2
ghdl-9b3040a5e3c8e74255c2831d6c0e7cb65da34b08.zip
testsuite.py: use main idiom.
Diffstat (limited to 'testsuite/gna')
-rwxr-xr-xtestsuite/gna/testsuite.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/gna/testsuite.py b/testsuite/gna/testsuite.py
index 13ae4a24b..d8859400e 100755
--- a/testsuite/gna/testsuite.py
+++ b/testsuite/gna/testsuite.py
@@ -76,5 +76,6 @@ def run():
print('{} tests run'.format(num))
-run()
+if __name__ == '__main__':
+ run()