-
Notifications
You must be signed in to change notification settings - Fork 158
[full-ci][tests-only] revert behat version and fix regex on test script #1507
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
Conversation
b102c1a to
8ffd52b
Compare
tests/acceptance/run.sh
Outdated
| # https://stackoverflow.com/questions/23416278/how-to-strip-ansi-escape-sequences-from-a-variable | ||
| # for ideas. | ||
| FAILED_SCENARIO_PATHS=$(echo "${FAILED_SCENARIO_PATHS_COLORED}" | sed "s/\x1b[^m]*m//g") | ||
| FAILED_SCENARIO_PATHS=$(echo "${FAILED_SCENARIO_PATHS_COLORED}" | sed "s/\x1b\[[0-9;]*m//g" | sed 's/\(\.feature:[0-9]\+\).*/\1/') |
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.
not sure why you have changed the first regex, but I think we can make the second easier to read and the whole thing easier to understand
| FAILED_SCENARIO_PATHS=$(echo "${FAILED_SCENARIO_PATHS_COLORED}" | sed "s/\x1b\[[0-9;]*m//g" | sed 's/\(\.feature:[0-9]\+\).*/\1/') | |
| FAILED_SCENARIO_PATHS=$(echo "${FAILED_SCENARIO_PATHS_COLORED}" | sed "s/\x1b[^m]*m//g") | |
| # some comment that explains what happens here, because the above comment only talks about the color codes | |
| FAILED_SCENARIO_PATHS=$(echo "${FAILED_SCENARIO_PATHS}" | sed 's/\(on line \d+\)//') |
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.
Both made easier to read ✔️
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.
That didnt work so sticking with the earlier regex pattern i.e. sed 's/\(\.feature:[0-9]\+\).*/\1/' that just get rids of everything after *.feature:55.
Please, re-review @individual-it
8ffd52b to
93166d5
Compare
|
I don't think it worked as intended |
Hmmmm. I dont think the failures are because of Behat. Restarted the build. |
20be11b to
ce76750
Compare
|
Converting to draft. The |
6d6d272 to
2ec6a61
Compare
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2ec6a61 to
32f35f7
Compare
Description
This PR reverts the behat version that was changed as temporary fix in this PR
And also fixes the regex to display the line number of failed tests -> A new feature introduced by Behat in
3.24.0.New format in
v3.24.0:coreApiAuth/webDavMKCOLAuth.feature:42 (on line 50)Previous versions v3.13:
coreApiAuth/webDavMKCOLAuth.feature:42So this PR adds another sed command that removes everything after
.feature:X, including the new (on line X) text.Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: