Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion build-scripts/get_labels_expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ def main(labels_f_path, exotics_f_path, run_on_exotics, only_exotics):
else:
labels_to_run = all_labels

if len(labels_to_run) != 0:
if len(labels_to_run) == 0:
# if no labels are found we print true to be a no-op in an expression that likely includes other elements like no exotics or specific labels
print("true")
else:
print("(", end="")
labels_eqs = ('label == "%s"' % label for label in sorted(labels_to_run))
print(" || \\\n ".join(labels_eqs) + ")")
Expand Down