tar/tar-1.30-filerem01.at-swap-actions.patch
Pavel Cahyna 4f9638dd1d Downstream patch to fix failure in filerem01 test
The previous change for some reason exposes a race in the filerem01
test: tar archives the file before genfile can remove it and thus
succeeds.

Newer versions of tar do not need this change, as the race in the tests
was fixed in a more systematic way (commits
e7cd377f7801d42aa8e07addff93d2150666c237 and
f86722c34c92f265bc9a20cb171d2fcfeab7d341).

Resolves: RHEL-85325
2025-06-03 20:04:40 +02:00

16 lines
592 B
Diff

diff --git a/tests/filerem01.at b/tests/filerem01.at
index bf020538..6a9893a6 100644
--- a/tests/filerem01.at
+++ b/tests/filerem01.at
@@ -43,8 +43,8 @@ genfile --file dir/file1
genfile --file dir/sub/file2
genfile --run --checkpoint=3 --unlink dir/file1 -- \
- tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
- --checkpoint-action='echo' -c -f archive.tar \
+ tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='echo' \
+ --checkpoint-action='sleep=1' -c -f archive.tar \
--listed-incremental db -v dir >/dev/null
],
[1],