gnu-tests: enable tac-continue and adapt expected result#9590
gnu-tests: enable tac-continue and adapt expected result#9590martinkunkel2 wants to merge 2 commits intouutils:mainfrom
Conversation
a556cd4 to
17dcd1e
Compare
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.
17dcd1e to
65f5655
Compare
|
GNU testsuite comparison: |
| 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 |
There was a problem hiding this comment.
@pixelb Can GNU include operation equivalent with this to tac-continue itself?
There was a problem hiding this comment.
@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.
There was a problem hiding this comment.
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.
This comment was marked as resolved.
Sorry, something went wrong.
This comment was marked as resolved.
This comment was marked as resolved.
* 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
|
@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. |
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.