| |
@@ -1,6 +1,7 @@
|
| |
import os
|
| |
import subprocess
|
| |
import time
|
| |
+ import math
|
| |
|
| |
from rpmUtils.miscutils import splitFilename
|
| |
from libtaskotron import check
|
| |
@@ -23,12 +24,12 @@
|
| |
# If no arch specific packages are avilable set ABI result as PASSED
|
| |
if ((len(os.listdir(stable_rpmsdir)) == 0) and (len(os.listdir(
|
| |
update_rpmsdir)) == 0)):
|
| |
- detail.output.append("No architetcure specific packages are available\n");
|
| |
+ detail.output.append("No architecture specific packages are available\n");
|
| |
detail.update_outcome("PASSED")
|
| |
else:
|
| |
detail.output.append("ABI changes report summary for package update id %s"
|
| |
" against latest stable package in koji\n" % koji_build)
|
| |
-
|
| |
+
|
| |
padding = str('=' * 103)
|
| |
detail.output.append("%s\n\n" % padding)
|
| |
for arch in arches:
|
| |
@@ -39,7 +40,7 @@
|
| |
log_file.writelines(detail.output)
|
| |
detail.artifact = log_path
|
| |
time_taken = time.time() - process_start_time
|
| |
- detail.note = "Time taken: " "%s" %(formatted_time(time_taken))
|
| |
+ detail.keyvals['seconds_taken'] = int(math.ceil(time_taken))
|
| |
resultyaml = check.export_YAML(detail)
|
| |
return resultyaml
|
| |
|
| |
Note is very visible for the end user and execution time is distracting
and not useful for them. Save it in extra args. As an added benefit, it
can be used to query results, and it can be easily processed (retrieve
results and then sort them by execution time) without parsing.