test_ok2/testing/freeze/tox_run.py

13 lines
360 B
Python
Raw Normal View History

"""
Called by tox.ini: uses the generated executable to run the tests in ./tests/
directory.
"""
2018-05-23 22:48:46 +08:00
if __name__ == "__main__":
import os
import sys
2018-05-23 22:48:46 +08:00
executable = os.path.join(os.getcwd(), "dist", "runtests_script", "runtests_script")
if sys.platform.startswith("win"):
executable += ".exe"
sys.exit(os.system("%s tests" % executable))