commit | 54719fe2a3a4ba5b9fb1768f3d9432b8f1cb3d23 | [log] [tgz] |
---|---|---|
author | Philipp Wollermann <philwo@google.com> | Fri Jul 02 21:54:08 2021 +0200 |
committer | Philipp Wollermann <philwo@google.com> | Sat Aug 07 08:34:38 2021 +0200 |
tree | aede70a65b31aef1aaa17cb2e3dfa0e6af665336 | |
parent | 6c729cc1703c955bdad88305a45a7a6df2ef524d [diff] [blame] |
Correctly handle sharding with an empty target list
diff --git a/buildkite/bazelci.py b/buildkite/bazelci.py index 1c6aa43..45548db 100755 --- a/buildkite/bazelci.py +++ b/buildkite/bazelci.py
@@ -1906,8 +1906,8 @@ ), ], print_output=False, - ) - return output.strip().split("\n") + ).strip() + return output.split("\n") if output else [] def partition_targets(targets):