Esempio n. 1
0
#!/usr/bin/env python2
from __future__ import print_function
import os
import sys

from utils import safe_string
from utils.trackerbot import post_task_result

with open("{}/setup.txt".format(os.environ['ARTIFACTOR_DIR'])) as f:
    data = f.read()

coverage = 0.0
try:
    with open("{}/coverage_result.txt".format(os.environ['CFME_REPO_DIR'])) as f:
        data = f.read().strip("\n")
    coverage = float(data)
except:
    pass

print(sys.argv[1], sys.argv[2], coverage)
post_task_result(sys.argv[1], sys.argv[2], safe_string(data), coverage)
Esempio n. 2
0
#!/usr/bin/env python2
from utils.trackerbot import post_task_result
import os
import sys

with open("{}/setup.txt".format(os.environ['ARTIFACTOR_DIR'])) as f:
    data = f.read()

print sys.argv[1], sys.argv[2]
post_task_result(sys.argv[1], sys.argv[2], data)
Esempio n. 3
0
#!/usr/bin/env python2
from __future__ import print_function
import os
import sys

from utils import safe_string
from utils.trackerbot import post_task_result

with open("{}/setup.txt".format(os.environ['ARTIFACTOR_DIR'])) as f:
    data = f.read()

coverage = 0.0
try:
    with open("{}/coverage_result.txt".format(
            os.environ['CFME_REPO_DIR'])) as f:
        data = f.read().strip("\n")
    coverage = float(data)
except:
    pass

print(sys.argv[1], sys.argv[2], coverage)
post_task_result(sys.argv[1], sys.argv[2], safe_string(data), coverage)
Esempio n. 4
0
#!/usr/bin/env python2
from utils.trackerbot import post_task_result
import os
import sys

with open("{}/setup.txt".format(os.environ['ARTIFACTOR_DIR'])) as f:
    data = f.read()

coverage = 0.0
try:
    with open("{}/coverage_result.txt".format(os.environ['CFME_REPO_DIR'])) as f:
        data = f.read().strip("\n")
    coverage = float(data)
except:
    pass

print sys.argv[1], sys.argv[2], coverage
post_task_result(sys.argv[1], sys.argv[2], data, coverage)