Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(e2e): update shard file selection logic

Steven Enamakel66db0c5a3fc6
diff --git a/app/scripts/e2e-web-shards.sh b/app/scripts/e2e-web-shards.sh
index f2f98460cb..120a475308 100755
--- a/app/scripts/e2e-web-shards.sh
+++ b/app/scripts/e2e-web-shards.sh
@@ -158,7 +158,10 @@ if [[ "$selection" == required ]]; then
fi
done
fi
-(( ${#shard_files[@]} > 0 || "$selection" == all )) || { echo "$selection selection has no ordinary shard files" >&2; exit 2; }
+if [[ "$selection" != all ]] && (( ${#shard_files[@]} == 0 )); then
+ echo "$selection selection has no ordinary shard files" >&2
+ exit 2
+fi
for ((shard=1; shard<=64; shard++)); do
if (( (shard - 1) % lanes + 1 == lane )); then
if [[ "$selection" == all ]]; then