rename INFER to INFER_EXECUTABLE

Summary: public this follows the naming in other scripts

Reviewed By: jeremydubreil

Differential Revision: D2646981

fb-gh-sync-id: 4c69c1f
master
Jules Villard 9 years ago committed by facebook-github-bot-7
parent 5691f24090
commit b2b2322db7

@ -25,7 +25,7 @@ from inferlib import utils
CURRENT_DIR = os.getcwd() CURRENT_DIR = os.getcwd()
REPORT_JSON = 'report.json' REPORT_JSON = 'report.json'
INFER = 'infer' INFER_EXECUTABLE = 'infer'
RECORD_ENV = 'INFER_RECORD_INTEGRATION_TESTS' RECORD_ENV = 'INFER_RECORD_INTEGRATION_TESTS'
@ -170,7 +170,7 @@ class BuildIntegrationTest(unittest.TestCase):
root, root,
['ant', 'clean'], ['ant', 'clean'],
['ant', 'compile'], ['ant', 'compile'],
INFER) INFER_EXECUTABLE)
do_test(errors, os.path.join(root, 'ant_report.json')) do_test(errors, os.path.join(root, 'ant_report.json'))
else: else:
print('\nSkipping Ant integration test') print('\nSkipping Ant integration test')
@ -184,7 +184,7 @@ class BuildIntegrationTest(unittest.TestCase):
root, root,
['gradle', 'clean'], ['gradle', 'clean'],
['gradle', 'build'], ['gradle', 'build'],
INFER) INFER_EXECUTABLE)
do_test(errors, os.path.join(root, 'gradle_report.json')) do_test(errors, os.path.join(root, 'gradle_report.json'))
else: else:
print('\nSkipping Gradle integration test') print('\nSkipping Gradle integration test')
@ -198,7 +198,7 @@ class BuildIntegrationTest(unittest.TestCase):
root, root,
['buck', 'clean'], ['buck', 'clean'],
['buck', 'build', 'infer'], ['buck', 'build', 'infer'],
INFER) INFER_EXECUTABLE)
report_path = os.path.join( report_path = os.path.join(
CURRENT_DIR, 'infer', 'tests', 'buck_report.json') CURRENT_DIR, 'infer', 'tests', 'buck_report.json')
do_test(errors, report_path) do_test(errors, report_path)

Loading…
Cancel
Save