summaryrefslogtreecommitdiff
path: root/bin/vyos-smoketest
blob: b8cc3687977f7955c53a6262ac9a18dd497e80c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env python3

import os
import sys

test_dir = '/usr/libexec/vyos/tests/smoke'

tests = ['test_load_modules.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)