generated from jric11/baseProject
10 lines
407 B
Python
10 lines
407 B
Python
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()
|