Skip to content

Implement change proposed in "All MRs that add unit tests conflict with each other" - #602

Merged
smcv merged 3 commits into
containers:mainfrom
quag:ok_done_testing
Oct 2, 2023
Merged

smcv merged 3 commits into
containers:mainfrom
quag:ok_done_testing

Conversation

@quag

@quag quag commented Oct 1, 2023

Copy link
Copy Markdown
Contributor

Fixes #420 using the proposed approach of defining ok(), done_testing(), and shifting the TAP plan from being written at the start to being written at the end. I also introduced an ok_skip() function, but I'm happy to change all uses to ok "# SKIP ..." if you prefer that.

This pull request also has two trivial fixes to the tests:

  1. A typo in a test case ("prefxing" -> "prefixing"
  2. Switch the last /bin/bash to just bash (there are five references to bash, the other four--including #!/usr/bin/env bash-- all use the bash on the $PATH)

Let me know if you'd rather these two changes were in separate pull requests.

@smcv smcv left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will need a rebase onto main with a small adjustment now that I've merged #598, but otherwise looks good. Thanks!

@smcv

smcv commented Oct 1, 2023

Copy link
Copy Markdown
Collaborator

Rebasing after I merged #599 will also require adding one extra ok_skip, I think.

quag added 3 commits October 1, 2023 10:26
The other three references to bash already use "bash" instead of
"/bin/bash". Similarly, "#!/bin/bash" has already been replaced with
"#!/usr/bin/env bash".

Signed-off-by: Jonathan Wright <[email protected]>
@quag
quag force-pushed the ok_done_testing branch from 45e617d to 0ff3430 Compare October 1, 2023 17:31
@quag

quag commented Oct 2, 2023

Copy link
Copy Markdown
Contributor Author

Rebases done. Let me know if more are needed.

@smcv
smcv merged commit 9cdc26e into containers:main Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

All MRs that add unit tests conflict with each other

2 participants