From aa673eadbdb4b29437750d20bc7d12906faac49c Mon Sep 17 00:00:00 2001 From: jrm Date: Mon, 8 Feb 2016 21:04:33 -0800 Subject: [PATCH] fix variable initialization in the build integration tests Summary: public The variable could be unitialized when the line number of an error is not in the base JSON report, which is currently the case for the errors in the test cases. Reviewed By: jvillard Differential Revision: D2913991 fb-gh-sync-id: d7e3857 shipit-source-id: d7e3857 --- scripts/build_integration_tests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/build_integration_tests.py b/scripts/build_integration_tests.py index 673cacdfa..22ab3db96 100755 --- a/scripts/build_integration_tests.py +++ b/scripts/build_integration_tests.py @@ -45,6 +45,7 @@ def quote(s): def string_of_error(e): + line = '' if issues.JSON_INDEX_LINE in e: line = ' on line %s ' % e[issues.JSON_INDEX_LINE] msg = '%s in file %s, procedure %s%s' % (