From 6cfe6dd6de08fce7350afb4c7608438b0d9346c0 Mon Sep 17 00:00:00 2001 From: underscorediscovery Date: Sat, 6 Jun 2020 10:29:35 -0700 Subject: [PATCH] tests; warn against missing wren_test binary instead of a loud error --- util/test.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/util/test.py b/util/test.py index 44fa9667..0892d7f1 100755 --- a/util/test.py +++ b/util/test.py @@ -21,11 +21,15 @@ args = parser.parse_args(sys.argv[1:]) config = args.suffix.lstrip('_d') is_debug = args.suffix.startswith('_d') -config_dir = ("debug" if is_debug else "release") + config WREN_DIR = dirname(dirname(realpath(__file__))) WREN_APP = join(WREN_DIR, 'bin', 'wren_test' + args.suffix) +if not isfile(WREN_APP): + print("The binary file 'wren_test' was not found, expected it to be at " + WREN_APP) + print("In order to run the tests, you need to build Wren first!") + sys.exit(1) + # print("Wren Test Directory - " + WREN_DIR) # print("Wren Test App - " + WREN_APP)