Skip to content
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

Make tests/help/help-version-getopt.sh pass #4987

Merged
merged 3 commits into from
Jun 21, 2023

Conversation

sylvestre
Copy link
Sponsor Contributor

No description provided.

Test: tests/help/help-version-getopt.sh
* "hostid BEFORE --help" doesn't fail for GNU. we fail. we are probably doing better
* "hostid BEFORE --help AFTER " same for this
util/build-gnu.sh Outdated Show resolved Hide resolved
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
Comment on lines +236 to +239
# disable two kind of tests:
# "hostid BEFORE --help" doesn't fail for GNU. we fail. we are probably doing better
# "hostid BEFORE --help AFTER " same for this
sed -i -e "s/env \$prog \$BEFORE \$opt > out2/env \$prog \$BEFORE \$opt > out2 #/" -e "s/env \$prog \$BEFORE \$opt AFTER > out3/env \$prog \$BEFORE \$opt AFTER > out3 #/" -e "s/compare exp out2/compare exp out2 #/" -e "s/compare exp out3/compare exp out3 #/" tests/misc/help-version-getopt.sh
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't it be simpler to just remove hostid from the file?

Copy link
Sponsor Contributor Author

Choose a reason for hiding this comment

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

hostid is just an example, others might fail to

@cakebaker cakebaker merged commit a18bf4b into uutils:main Jun 21, 2023
41 of 45 checks passed
@sylvestre sylvestre deleted the help-version-getopt branch June 23, 2023 08:49
@uutils uutils deleted a comment from github-actions bot Jun 23, 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.

2 participants