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

Un-Ignore two tests that fail for nonsense reasons #5997

Merged
merged 2 commits into from
Feb 23, 2024

Conversation

BenWiederhake
Copy link
Collaborator

This PR un-ignores two tests:

  • test_head::test_spams_newline set a wrong expectation. A simple comparison with GNU head and busybox head reveals that the test was flawed, and plugging in the correct output passes the test.
  • test_touch::test_touch_invalid_date_format had a simple typo: Apparently someone accidentally copy-pasted typographic quotation marks instead of the usual "ASCII" quotation marks. Changing this passes the test.

The comment was introduced in commit 8320b1e,
the test was introduced in commit c1f518e
claiming to be about "failing GNU head tests".

However, a simple check reveals no such difference:

```console
$ echo -n a | hd
00000000  61                                                |a|
00000001
$ echo -n a | head | hd  # GNU head
00000000  61                                                |a|
00000001
$ echo -n a | cargo run -- head | hd
00000000  61                                                |a|
00000001
$ echo -n a | busybox head | hd
00000000  61                                                |a|
00000001
$
```

Looking at the GNU tests directly, it seems that there is a similar, but different test.
@sylvestre sylvestre merged commit 208b2db into uutils:main Feb 23, 2024
62 checks passed
@BenWiederhake BenWiederhake deleted the dev-unignore branch February 23, 2024 10:10
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.

3 participants