Skip to content

Commit

Permalink
Fix conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Feb 5, 2025
1 parent 77af6c7 commit d4b2510
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ jobs:
local cc=$2
local pacing=$3
local flags=$4
if [ "$cc" != "" ]; then
if [[ "$cc" != "" ]]; then
CMD=${CMD//_cc/--cc $cc}
EXT="-$cc"
fi
if [ "$pacing" == "on" ]; then
if [[ "$pacing" == "on" ]]; then
CMD=${CMD//_pacing/}
EXT="$EXT-pacing"
else
Expand All @@ -174,7 +174,7 @@ jobs:
for server in neqo google msquic; do
for client in neqo google msquic; do
# We are not interested in google as the server, or msquic as the client, except against themselves.
if [[ "$client" != "google" && "$server" == "google" || "$client" == "msquic" && "$server" != "msquic" ]]; then
if [[ "$client" != "google" && "$server" == "google" ]] || [[ "$client" == "msquic" && "$server" != "msquic" ]]; then
continue
fi
# google and msquic don't let us configure the congestion control or pacing.
Expand All @@ -188,9 +188,9 @@ jobs:
for cc in "${cc_opt[@]}"; do
for pacing in "${pacing_opt[@]}"; do
# Make a tag string for this test, for the results. Highlight lines we care about.
if [[ "$client" == "neqo" && "$server" == "neqo" && "$cc" == "cubic" && "$pacing" == "on" ||
"$client" == "msquic" && "$server" == "msquic" ||
"$client" == "google" && "$server" == "google" ]]; then
if [[ "$client" == "neqo" && "$server" == "neqo" && "$cc" == "cubic" && "$pacing" == "on" ]] ||
[[ "$client" == "msquic" && "$server" == "msquic" ]] ||
[[ "$client" == "google" && "$server" == "google" ]]; then
TAG="**$client**,**$server**,**$cc**,**$pacing**"
else
TAG="$client,$server,$cc,$pacing"
Expand Down

0 comments on commit d4b2510

Please sign in to comment.