1
0
forked from Mirror/wren

tests; warn against missing wren_test binary instead of a loud error

This commit is contained in:
underscorediscovery
2020-06-06 10:29:35 -07:00
parent 8341f61cdb
commit 6cfe6dd6de

View File

@ -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)