diff options
author | Rob Landley <rob@landley.net> | 2020-06-23 04:03:53 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2020-06-23 04:03:53 -0500 |
commit | d313e8d271aacb56fe9ff6db901a987d739ca98b (patch) | |
tree | c0f55148fb7e2783ecb5fd8a7ef36b298f403414 /tests | |
parent | 4754cba6f3066e60cd4da4b4a9205392be5dea18 (diff) | |
download | toybox-d313e8d271aacb56fe9ff6db901a987d739ca98b.tar.gz |
William Djupström reported tar --exclude wasn't working. Fix and add test.
(Also fix -v output going to stderr when it shouldn't.)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tar.test | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/tar.test b/tests/tar.test index c2ca4895..d6c505ae 100644 --- a/tests/tar.test +++ b/tests/tar.test @@ -262,6 +262,11 @@ for i in {0..12}; do touch links/orig$i; ln links/{orig,link}$i; done testcmd 'links2' '-cf test.tar links' '' '' '' rm -rf links +install -m 000 -d folder/skip/oof && +testcmd 'exclude' '--exclude skip -cvf tar.tar folder && echo yes' \ + 'folder/\nyes\n' '' '' +rm -rf folder tar.tar + if false then |