summaryrefslogtreecommitdiffstats
path: root/test cases/common/129 build by default/checkexists.py
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/common/129 build by default/checkexists.py')
-rw-r--r--test cases/common/129 build by default/checkexists.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test cases/common/129 build by default/checkexists.py b/test cases/common/129 build by default/checkexists.py
new file mode 100644
index 0000000..6664f72
--- /dev/null
+++ b/test cases/common/129 build by default/checkexists.py
@@ -0,0 +1,10 @@
+#!/usr/bin/env python3
+
+import os.path, sys
+
+invert = False
+for path in sys.argv[1:]:
+ if path == '--not':
+ invert = True
+ elif not os.path.exists(path) ^ invert:
+ sys.exit(1)