From c18da79d3fc0e1ca32dcbf044be001af1820e112 Mon Sep 17 00:00:00 2001 From: Luca Farsi Date: Mon, 22 Jan 2024 14:56:13 -0800 Subject: [PATCH] Determine if the build is in presubmit using build id The current logic to determine if a build is pre or postsubmit is the existence of the change_info file but this file also exists in postsubmit, causing the build to break. Use the build ID as the heuristic instead which should be more reliable. Test: abtd run Bug: 314171817 Change-Id: I9871eee71c0574583b528135dadd42e3f485a780 --- ci/build_test_suites.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/build_test_suites.py b/ci/build_test_suites.py index 10640415e0..9b8314841a 100644 --- a/ci/build_test_suites.py +++ b/ci/build_test_suites.py @@ -39,7 +39,7 @@ REQUIRED_MODULES = frozenset( def build_test_suites(argv): args = parse_args(argv) - if not args.change_info: + if not os.environ.get('BUILD_NUMBER')[0] == 'P': build_everything(args) return