aboutsummaryrefslogtreecommitdiff
path: root/afdo_tools/bisection/afdo_prof_analysis.py
diff options
context:
space:
mode:
Diffstat (limited to 'afdo_tools/bisection/afdo_prof_analysis.py')
-rwxr-xr-xafdo_tools/bisection/afdo_prof_analysis.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/afdo_tools/bisection/afdo_prof_analysis.py b/afdo_tools/bisection/afdo_prof_analysis.py
index 095adf0c..d974a7a8 100755
--- a/afdo_tools/bisection/afdo_prof_analysis.py
+++ b/afdo_tools/bisection/afdo_prof_analysis.py
@@ -142,6 +142,12 @@ class DeciderState(object):
if return_code in statuses:
status = StatusEnum(return_code)
+ if status == StatusEnum.PROBLEM_STATUS:
+ prof_file = prof_to_tmp(prof)
+ raise RuntimeError('Provided decider script returned PROBLEM_STATUS '
+ 'when run on profile stored at %s. AFDO Profile '
+ 'analysis aborting' % prof_file)
+
if save_run:
self.accumulated_results.append(status.value)
logging.info('Run %d of external script %s returned %s',