summaryrefslogtreecommitdiff
path: root/ci/build_test_suites.py
diff options
context:
space:
mode:
author Luca Farsi <lucafarsi@google.com> 2024-01-22 14:56:13 -0800
committer Luca Farsi <lucafarsi@google.com> 2024-01-22 14:56:13 -0800
commitc18da79d3fc0e1ca32dcbf044be001af1820e112 (patch)
treefdee2173edaacab8c5e380a0b8a5d9b6a3984dd5 /ci/build_test_suites.py
parent3b7d46f4ca4e5287273470c4a6acb91271fedbfb (diff)
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
Diffstat (limited to 'ci/build_test_suites.py')
-rw-r--r--ci/build_test_suites.py2
1 files changed, 1 insertions, 1 deletions
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