histogram/tools/pass_on_fail.py
Mateusz Łoskot 23a1f6c5c4 Move CMakeLists.txt to top-level directory of the library
Add missing copyright header to CMakeLists.txt.
Rename build directory to tools.
Update Travis CI and AppVeyor scripts.
Ignore variants of build directory.
Ignore CMakeSettings.json used with CMake integration for VS2017.
Ignore Visual Studio and Visual Studio Code local settings folder.
2019-01-11 00:06:25 +01:00

25 lines
566 B
Python

# Copyright 2018 Hans Dembinski
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt
# or copy at http://www.boost.org/LICENSE_1_0.txt)
import subprocess as subp
import sys
import os
args = sys.argv[1:]
# modify path for windows [this is a hotfix]
t = os.path.join(os.getcwd(), "Debug", args[0] + ".exe")
sys.stdout.write("input file: " + t + "\n")
if os.path.exists(t):
args[0] = t
if not os.path.isabs(args[0]):
args[0] = os.path.abspath(args[0])
exit_code = subp.call(args)
sys.exit(not exit_code)