Skip to content

Commit dae9947

Browse files
chadaustinfacebook-github-bot
authored andcommitted
fix tpx command line when filtering is enabled
Summary: The testpilot command line getdeps generated was not suitable for tpx when filtering. tpx would consider the passed test filter an environment variable. Reorder a few things to at least make filtering work. Reviewed By: fanzeyi Differential Revision: D28976061 fbshipit-source-id: 21c45b3a4a59711a2a5da36a1bd11b7b4871ec5d
1 parent 37ce137 commit dae9947

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build/fbcode_builder/getdeps/builder.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -752,12 +752,15 @@ def list_tests():
752752
"--print-long-results",
753753
]
754754

755+
if owner:
756+
testpilot_args += ["--contacts", owner]
757+
755758
if tpx and env:
756759
testpilot_args.append("--env")
757760
testpilot_args.extend(f"{key}={val}" for key, val in env.items())
758761

759-
if owner:
760-
testpilot_args += ["--contacts", owner]
762+
if test_filter:
763+
testpilot_args += ["--", test_filter]
761764

762765
if schedule_type == "continuous":
763766
runs.append(
@@ -797,9 +800,6 @@ def list_tests():
797800
else:
798801
runs.append(["--collection", "oss-diff", "--purpose", "diff"])
799802

800-
if test_filter:
801-
testpilot_args += [test_filter]
802-
803803
for run in runs:
804804
self._run_cmd(
805805
testpilot_args + run,

0 commit comments

Comments
 (0)