summaryrefslogtreecommitdiff
path: root/tests/t0060-rm-tests.sh
blob: 25c9e528fac7c955728d720ae05d6961997c8291 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

test_description='Test rm'
. ./setup.sh

TEST_CRED="test_cred"

test_expect_success 'Test "rm" command' '
	pass_init &&
	create_cred "$TEST_CRED" &&
	echo "Removing $TEST_CRED" &&
	echo "y" | $PASS rm "$TEST_CRED" &&
	check_no_cred "$TEST_CRED"
'

test_expect_success 'Test "rm" of non-existent password' '
	test_must_fail $PASS rm does-not-exist
'

test_done
t/commit/pkg/config/yaml.go?id=d743fd7310b767ad26fc0c13353efa94dadc8f62&follow=1'>Improve error handlingRené 'Necoro' Neumann1-1/+11 2023-04-21Fix workflow: '1.20' needs to be quotedRené 'Necoro' Neumann2-2/+2