-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: introduce a script to test flag --comm
#222
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
--comm
--comm
22bd67b
to
760ffad
Compare
@@ -0,0 +1,40 @@ | |||
#!/usr/bin/env bash | |||
. $(dirname "$0")/common.sh | |||
set -ex |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not adding -o pipefail?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I copied these scaffold codes from other steps. I'm not sure what the side effects of changing the set option would be.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can use this set -euxo pipefail
. It should has no side effects .
760ffad
to
c5e874d
Compare
c5e874d
to
fc7c057
Compare
Signed-off-by: spencercjh <[email protected]>
fc7c057
to
2f28fdd
Compare
HTTPS may require sending more than two requests over a long connection to be correctly captured 😂. What do you think? @spencercjh |
curl --insecure https://127.0.0.1:4443 &>/dev/null || true | ||
wait | ||
|
||
cat "${AFTER_LNAME}" | grep "127.0.0.1:4443" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filtering by ip:port alone may not be accurate, as only the final request and response being printed can be considered successful. I think we can filter by some request info like domain.
pip install --break-system-packages ssl || true | ||
|
||
# server start before kyanos | ||
timeout 40 python3 ./testdata/start_https_server.py & |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, using HTTP might be more appropriate. I misled you in the issue.
OK 👌 |
CLOSE #212