#!/usr/bin/env python3 import os import sys test_dir = '/usr/libexec/vyos/tests/smoke' tests = ['test_module_load.py'] success = True for t in tests: try: os.system(os.path.join(test_dir, t)) except Exception as e: success = False if not success: sys.exit(1)