Files
huntingclubroster/tests/production_runner.py
T

10 lines
407 B
Python
Raw Normal View History

import subprocess
from application_harness import Application,PHP,ROOT
app=Application()
try:
result=subprocess.run(PHP+['tests/production_security.php'],cwd=ROOT,env=app.env)
if result.returncode:raise SystemExit(result.returncode)
result=subprocess.run(PHP+['tests/runtime_privileges.php'],cwd=ROOT,env=app.env)
if result.returncode:raise SystemExit(result.returncode)
finally:app.close()