diff --git a/perf-postprocess.py b/perf-postprocess.py index 3815f53..8765897 100644 --- a/perf-postprocess.py +++ b/perf-postprocess.py @@ -634,6 +634,7 @@ def get_metadata(): global PERCORE_MODE global SOCKET_CORES global TIME_ZONE + global CGROUPS global CGROUP_HASH global CPUSETS @@ -1431,7 +1432,11 @@ def is_safe_path(base_dir, path, follow_symlinks=True): "xlsxwriter not found to generate excel output. Install xlsxwriter or use .csv" ) EXCEL_OUT = True - + if args.html: + if not args.html.endswith(".html"): + raise SystemExit( + args.html + " isn't a valid html file name, .html files are accepted" + ) # parse header get_metadata() zero_division_errcount = 0