summaryrefslogtreecommitdiff
path: root/tests/t0020-show-tests.sh
diff options
context:
space:
mode:
authorRémi Lapeyre <remi.lapeyre@lenstra.fr>2020-03-30 00:01:24 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-06-11 18:47:43 +0200
commita60b7ec4dcdce874009b93fd79d53eefa39ad338 (patch)
tree2be85eda3d1fbfe5faaf31b375dcf7294d1e3caf /tests/t0020-show-tests.sh
parentd4db24bfc34b29a3a894ebea2caa3ed6724207d7 (diff)
downloadpass-a60b7ec4dcdce874009b93fd79d53eefa39ad338.tar.gz
pass-a60b7ec4dcdce874009b93fd79d53eefa39ad338.tar.bz2
pass-a60b7ec4dcdce874009b93fd79d53eefa39ad338.zip
Ignore non-printable characters in calls to tree
In MacOS Catalina, pass fails on accents with 'sed: RE error: illegal byte sequence'.
Diffstat (limited to '')
-rwxr-xr-xtests/t0020-show-tests.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/t0020-show-tests.sh b/tests/t0020-show-tests.sh
index a4b782f..81b87b4 100755
--- a/tests/t0020-show-tests.sh
+++ b/tests/t0020-show-tests.sh
@@ -15,6 +15,11 @@ test_expect_success 'Test "show" command with spaces' '
[[ $("$PASS" show "I am a cred with lots of spaces") == "BLAH!!" ]]
'
+test_expect_success 'Test "show" command with unicode' '
+ "$PASS" generate 🏠 &&
+ "$PASS" show | grep -q '🏠'
+'
+
test_expect_success 'Test "show" of nonexistant password' '
test_must_fail "$PASS" show cred2
'