Skip to content

Commit 0c19aca

Browse files
authored
Update test_github.yml to use grep -F for patterns
1 parent 7ccc406 commit 0c19aca

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

.github/workflows/test_github.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -603,13 +603,18 @@ jobs:
603603
OTLP_JSON: '${{ steps.filename.outputs.otlp }}'
604604
run: |
605605
[ "$(cat "$OTLP_JSON" | jq -r .context.trace_id | grep -v '^null$' | sort -u | cut -d x -f 2 | tee /dev/stderr)" = "$(cat traceparent | cut -d - -f 2 | tee /dev/stderr)" ]
606-
cat "$OTLP_JSON" | jq -r .name | grep -v '^null$' | sort -u | grep 'test (foo)'
607-
cat "$OTLP_JSON" | jq -r .name | grep -v '^null$' | sort -u | grep 'test (bar)'
608-
cat "$OTLP_JSON" | jq -r .name | grep -v '^null$' | sort -u | grep 'test (baz)'
609-
cat "$OTLP_JSON" | jq -r .name | grep -v '^null$' | sort -u | grep 'publish'
610-
cat "$OTLP_JSON" | jq -r .name | grep -v '^null$' | sort -u | grep 'Set up job'
611-
cat "$OTLP_JSON" | jq -r .name | grep -v '^null$' | sort -u | grep 'Complete job'
612-
# cat "$OTLP_JSON" | jq -r .body | grep -v '^null$' | sort -u | grep 'Cleaning up orphan processes'
606+
cat "$OTLP_JSON" | jq -r .name | grep -v '^null$' | sort -u | grep -F 'test (foo)'
607+
cat "$OTLP_JSON" | jq -r .name | grep -v '^null$' | sort -u | grep -F 'test (bar)'
608+
cat "$OTLP_JSON" | jq -r .name | grep -v '^null$' | sort -u | grep -F 'test (baz)'
609+
cat "$OTLP_JSON" | jq -r .name | grep -v '^null$' | sort -u | grep -F 'publish'
610+
cat "$OTLP_JSON" | jq -r .name | grep -v '^null$' | sort -u | grep -F 'name-with_special-characters'
611+
cat "$OTLP_JSON" | jq -r .name | grep -v '^null$' | sort -u | grep -F 'job-with(a)special[name]with.special&characters'
612+
cat "$OTLP_JSON" | jq -r .name | grep -v '^null$' | sort -u | grep -F 'Set up job'
613+
cat "$OTLP_JSON" | jq -r .name | grep -v '^null$' | sort -u | grep -F 'Complete job'
614+
# cat "$OTLP_JSON" | jq -r .body | grep -v '^null$' | sort -u | grep -F 'Cleaning up orphan processes'
615+
# cat "$OTLP_JSON" | jq -r .body | grep -v '^null$' | sort -u | grep -F 'hello world, im a publisher (not injected)'
616+
# cat "$OTLP_JSON" | jq -r .body | grep -v '^null$' | sort -u | grep -F 'hello world, im a job with some special characters (not injected)'
617+
# cat "$OTLP_JSON" | jq -r .body | grep -v '^null$' | sort -u | grep -F 'hello world, im a job with custom name (not injected)'
613618
checksuite-smoke:
614619
runs-on: ubuntu-latest
615620
timeout-minutes: 180

0 commit comments

Comments
 (0)