Skip to content

gnu-tests: enable tac-continue and adapt expected result#9590

Closed
martinkunkel2 wants to merge 2 commits intouutils:mainfrom
martinkunkel2:gnu-tac-continue-test
Closed

gnu-tests: enable tac-continue and adapt expected result#9590
martinkunkel2 wants to merge 2 commits intouutils:mainfrom
martinkunkel2:gnu-tac-continue-test

Conversation

@martinkunkel2
Copy link
Contributor

Changes in CI enable the tac-continue test, so that it is not skipped anymore.
This will result in failure instead, as the behavior of uutils is different.

With the patch we could change the expected behavior.

@martinkunkel2
Copy link
Contributor Author

martinkunkel2 commented Dec 7, 2025

@oech3 : this is follow-up of our discussion in #9127.
I am not sure if it is really the right approach to mount this partition - just to enable a test, which then needs to be patched to match uutils behavior.

Maybe accept that this one will forever be skipped and just comment that in why-skip.md?

tac/tac-continue test needs a temporary directory which is on a
partition in which you can still create files, but where no free space
is left.
Add a patch that changes the expected behavior in tac-continue test to
match uutils implementation of tac.

The test expects that a temporary file has to be opened and written to.
This is not the case for uutils implementation.
@martinkunkel2 martinkunkel2 changed the title gnut-tests: enable tac-continue and adapted expected result gnut-tests: enable tac-continue and adapt expected result Dec 7, 2025
@martinkunkel2 martinkunkel2 changed the title gnut-tests: enable tac-continue and adapt expected result gnu-tests: enable tac-continue and adapt expected result Dec 7, 2025
@github-actions
Copy link

github-actions bot commented Dec 7, 2025

GNU testsuite comparison:

Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/tail/overlay-headers (fails in this run but passes in the 'main' branch)
Congrats! The gnu test tests/tac/tac-continue is now passing!

run: |
# for tac/tac-continue test
export FULL_PARTITION_TMPDIR=/mnt/full_partition
sudo mount --mkdir=0777 --types tmpfs --options size=1M tmpfs $FULL_PARTITION_TMPDIR
Copy link
Contributor

Choose a reason for hiding this comment

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

@pixelb Can GNU include operation equivalent with this to tac-continue itself?

Copy link
Contributor

Choose a reason for hiding this comment

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

@pixelb Thankyou for using yes at #9594 (comment) . It should work with uutils.

@martinkunkel2 Thankyou for opening this. But backporting new tests is difficult some reason (see #9530 (comment)). So we will close this now. Tell me if you find a reasonable way for backporting.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, let's close it here.

+
+# uutils does not create this temporary file in $TMPDIR, so the expected result is different
+# there is just no difference from normal operation
+# that means tac returns with success and the expected output the reverse of inputs

This comment was marked as resolved.

@oech3

This comment was marked as resolved.

gitmirroring-auto-sync-bot bot pushed a commit to GitMirroring/coreutils that referenced this pull request Dec 7, 2025
* tests/tac/tac-continue.sh: This test was very awkard to setup,
and thus always skipped.  Instead move to a root only test
that creates an almost full partition itself.
* tests/local.mk: Move test to root only.
Suggested at uutils/coreutils#9590
@martinkunkel2
Copy link
Contributor Author

@pixelb Thank you for refactoring the test in GNU coreutils, including the setup of the tmpfs.

Let's close this and wait for integration of next release.

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