blob: f58ca73f312bf72f6e337e8cb5a07308118684a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import subprocess
def main():
result = "pass"
try:
ver = subprocess.check_output(["./version.py"]).decode('utf-8')
except OSError:
result = "fail"
ver = 0
except subprocess.CalledProcessError:
result = "fail"
ver = 0
print(ver)
# subprocess.Popen(["lava-test-case", "code-version-%s" % ver, "--result", result])
return 0
if __name__ == '__main__':
main()
|