Skip to content

Commit fada7be

Browse files
Merge pull request #2218 from craigcomstock/ent-14025/3.24
fix: build-scripts/get_labels_expr.py should return an error when asked for exotics and none are found (3.24)
2 parents f3ed535 + 198daf9 commit fada7be

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

build-scripts/get_labels_expr.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ def main(labels_f_path, exotics_f_path, run_on_exotics, only_exotics):
5454
else:
5555
labels_to_run = all_labels
5656

57-
if len(labels_to_run) != 0:
57+
if len(labels_to_run) == 0:
58+
print("No exotics were found. Returning error code 42 to indicate this.", file=sys.stderr)
59+
return 42
60+
else:
5861
print("(", end="")
5962
labels_eqs = ('label == "%s"' % label for label in sorted(labels_to_run))
6063
print(" || \\\n ".join(labels_eqs) + ")")

0 commit comments

Comments
 (0)