17 lines
648 B
Python
Executable File
17 lines
648 B
Python
Executable File
#!/usr/bin/env python3
|
|
import importlib.util
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
if len(sys.argv) != 3:
|
|
raise SystemExit('usage: run_online_smoke_18920.py <source-root> <output>')
|
|
source_root = Path(sys.argv[1]).resolve()
|
|
script = source_root / 'tools' / 'aios_v2r1c2_online_smoke.py'
|
|
spec = importlib.util.spec_from_file_location('v2r1c2_online_smoke_production', script)
|
|
if spec is None or spec.loader is None:
|
|
raise SystemExit('unable to load approved online smoke harness')
|
|
module = importlib.util.module_from_spec(spec)
|
|
spec.loader.exec_module(module)
|
|
module.BASE = 'http://127.0.0.1:18920'
|
|
raise SystemExit(module.main(sys.argv[2]))
|