Commit 27f9f621 authored by Reto Da Forno's avatar Reto Da Forno
Browse files

do not attempt plot generation if GPIO tracing file is missing

parent 680a2860
......@@ -988,8 +988,8 @@ def prepare_testresults(testid, cur):
else:
logger.warning("Could not copy XML config to test results directory.")
# Generate plot ---
if flocklab.config.getint('viz', 'generate_plots'):
# Generate plot if GPIO tracing file exists and is not too large ---
if flocklab.config.getint('viz', 'generate_plots') and os.path.isfile("%s/gpiotracing.csv" % testresultsdir):
# Make sure the GPIO tracing file does not exceed a certain limit (otherwise plot generation will not complete)
tracingsize = os.path.getsize("%s/gpiotracing.csv" % testresultsdir)
allowedsize = flocklab.config.getint('viz', 'gpiotracinglimit')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment