projects
/
lttng-ci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Lava: Omitting runs with missing metadata file
[lttng-ci.git]
/
scripts
/
lttng-baremetal-tests
/
generate-plots.py
diff --git
a/scripts/lttng-baremetal-tests/generate-plots.py
b/scripts/lttng-baremetal-tests/generate-plots.py
index 30005cc8b56507585ddc8edcbfaa91f69a5ebf07..03a4e18df7eaad1eb2539b423ee3b5ef1b0a0efd 100644
(file)
--- a/
scripts/lttng-baremetal-tests/generate-plots.py
+++ b/
scripts/lttng-baremetal-tests/generate-plots.py
@@
-123,7
+123,11
@@
def create_metadata_file(res_dir):
for dirname, dirnames, res_files in os.walk('./'+res_dir):
if len(dirnames) > 0:
continue
for dirname, dirnames, res_files in os.walk('./'+res_dir):
if len(dirnames) > 0:
continue
- metadata = pd.read_csv(os.path.join(dirname, 'metadata.csv'))
+ try:
+ metadata = pd.read_csv(os.path.join(dirname, 'metadata.csv'))
+ except Exception:
+ print('Omitting run {} because metadata.csv is missing'.format(dirname))
+ continue
list_.append(metadata)
df = pd.concat(list_)
list_.append(metadata)
df = pd.concat(list_)
@@
-140,7
+144,11
@@
def create_plots(res_dir):
for dirname, dirnames, res_files in os.walk('./'+res_dir):
if len(dirnames) > 0:
continue
for dirname, dirnames, res_files in os.walk('./'+res_dir):
if len(dirnames) > 0:
continue
- metadata = pd.read_csv(os.path.join(dirname, 'metadata.csv'))
+ try:
+ metadata = pd.read_csv(os.path.join(dirname, 'metadata.csv'))
+ except Exception:
+ print('Omitting run {} because metadata.csv is missing'.format(dirname))
+ continue
for res in res_files:
if res in 'metadata.csv':
for res in res_files:
if res in 'metadata.csv':
This page took
0.022593 seconds
and
4
git commands to generate.