-
Notifications
You must be signed in to change notification settings - Fork 143
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
Refactor and document test wrapper scripts #3448
Open
happz
wants to merge
3
commits into
main
Choose a base branch
from
refactor-test-wrapper-script
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
happz
added
code | style
Code style changes not affecting functionality
code | no functional change
"No Functional Change" intended. Patch should not change tmt's behavior in any way.
ci | full test
Pull request is ready for the full test execution
labels
Jan 7, 2025
happz
requested review from
psss,
lukaszachy,
thrix,
janhavlin and
martinhoyer
as code owners
January 7, 2025 13:31
happz
force-pushed
the
refactor-test-wrapper-script
branch
from
January 9, 2025 13:55
7275e7a
to
8e0405c
Compare
3 tasks
happz
added
the
status | blocking other work
An important pull request, blocking other pull requests or issues
label
Jan 21, 2025
happz
force-pushed
the
refactor-test-wrapper-script
branch
2 times, most recently
from
January 27, 2025 10:02
1ae59bc
to
b205072
Compare
happz
force-pushed
the
refactor-test-wrapper-script
branch
from
January 28, 2025 09:20
b205072
to
d0f05e7
Compare
lukaszachy
requested changes
Feb 4, 2025
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.
Test failure in try/investigate
as it asserts the name of the wrapper
:: [ 10:11:36 ] :: [ FAIL ] :: File '/var/tmp/rlRun_LOG.CcE0FyDF' should contain 'tmt-test-wrapper.sh'
tmt/steps/execute/internal.py
Outdated
# complicated shell script. To avoid issues with quotes and escaping | ||
# things here and there, tmt saves the test script into the inner | ||
# wrapper, and then the outer wrapper can work with just a single a | ||
# single executable shell script. |
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.
a single
is used twice
Yes, there are more than one, and the documentation comments were speaking just about one of them. So, giving them the names, adding more comments on why they exist, and changing the implementation to better reuse code when creating these wrappers.
happz
force-pushed
the
refactor-test-wrapper-script
branch
from
February 4, 2025 12:17
d0f05e7
to
d9cfa5a
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
ci | full test
Pull request is ready for the full test execution
code | no functional change
"No Functional Change" intended. Patch should not change tmt's behavior in any way.
code | style
Code style changes not affecting functionality
status | blocking other work
An important pull request, blocking other pull requests or issues
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Yes, there is more than one, and the documentation comments were speaking just about one of them. So, giving them the names, adding more comments on why they exist, and changing the implementation to better reuse code when creating these wrappers.
Pull Request Checklist