/
githubmirror
/
vgstation13
Обзор
Документация
Войти
/
githubmirror
/
vgstation13
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
Bleeding-Edge
tools/travis/run_tests.py
26 строк
667 B
DamianX
Compile-time options for development (#20119)
17 окт 2018, 14:07
17 окт 2018, 14:07
b8a592d
Код
Авторство
О чём код?
#!/usr/bin/env python3 import os import distutils.spawn import asyncio import travis_utils def main(): if os.environ.get("DM_UNIT_TESTS") != "1": print("DM_UNIT_TESTS is not set, not running tests.") return dmb = "vgstation13.dmb" executable = "DreamDaemon" dreamdaemon = distutils.spawn.find_executable(executable) if not dreamdaemon: print("Unable to find {}.".format(executable)) exit(1) loop = travis_utils.get_platform_event_loop() code = loop.run_until_complete(travis_utils.run_with_timeout_guards([dreamdaemon, dmb, "-close", "-trusted"])) exit(code) if __name__ == "__main__": main()