15 lines
664 B
Python
15 lines
664 B
Python
"""Run the existing synthetic guard scenarios against the recovered guard copy."""
|
|
import unittest
|
|
import test_s2_pilot_gpu_guard as scenarios
|
|
import s2_recovered_pilot_gpu_guard as recovered
|
|
from s2_recovery_gpu_supervisor import supervise
|
|
|
|
scenarios.guard=recovered
|
|
scenarios.supervise=supervise
|
|
scenarios.parse_device_usage=recovered.parse_device_usage
|
|
|
|
if __name__=='__main__':
|
|
print('Targets: s2_recovered_pilot_gpu_guard and s2_recovery_gpu_supervisor; synthetic only, no GPU')
|
|
result=unittest.TextTestRunner(verbosity=2).run(unittest.defaultTestLoader.loadTestsFromTestCase(scenarios.GPUUsageTests))
|
|
raise SystemExit(not result.wasSuccessful())
|