diff options
Diffstat (limited to 'test/t/test_tar.py')
-rw-r--r-- | test/t/test_tar.py | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/test/t/test_tar.py b/test/t/test_tar.py index 309bcc76..4518d0bd 100644 --- a/test/t/test_tar.py +++ b/test/t/test_tar.py @@ -77,28 +77,22 @@ class TestTar: @pytest.mark.complete("tar --add-fil") def test_15(self, completion, gnu_tar): - assert completion == "--add-file=" + assert completion == "e=" assert not completion.endswith(" ") @pytest.mark.complete("tar -cf /dev/null --posi") def test_16(self, completion, gnu_tar): - assert completion == "--posix" + assert completion == "x" assert completion.endswith(" ") @pytest.mark.complete("tar --owner=") - def test_17(self, bash, completion, gnu_tar): - users = sorted( - assert_bash_exec(bash, "compgen -A user", want_output=True).split() - ) + def test_17(self, bash, completion, gnu_tar, output_sort_uniq): + users = output_sort_uniq("compgen -u") assert completion == users @pytest.mark.complete("tar --group=") - def test_18(self, bash, completion, gnu_tar): - groups = sorted( - assert_bash_exec( - bash, "compgen -A group", want_output=True - ).split() - ) + def test_18(self, bash, completion, gnu_tar, output_sort_uniq): + groups = output_sort_uniq("compgen -g") assert completion == groups # Use -b for this as -b is still not handled by tar's completion @@ -121,6 +115,6 @@ class TestTar: @pytest.mark.complete(r"tar tf escape.tar a/b\'", cwd="tar") def test_22(self, bash, completion): """Test listing escaped chars in old option.""" - assert completion == "a/b'c/" + assert completion == "c/" # TODO: "tar tf escape.tar a/b" |