Commit a82759bba72a25e2887499e3c626b5390aa2c11c

Josh Rickmar 2022-07-03T21:57:37

fix echo/printf order and actually run the test

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/regress/cmdline/tag.sh b/regress/cmdline/tag.sh
index da0dbe9..bdc8067 100755
--- a/regress/cmdline/tag.sh
+++ b/regress/cmdline/tag.sh
@@ -443,8 +443,9 @@ test_tag_create_ssh_signed_missing_key() {
 		return 1
 	fi
 	printf "Couldn't load public key $testroot/bogus: " \
-	echo "got: unable to sign tag" >> $testroot/stderr.expected
+		>> $testroot/stderr.expected
 	printf "No such file or directory\r\n" >> $testroot/stderr.expected
+	echo "got: unable to sign tag" >> $testroot/stderr.expected
 	cmp -s $testroot/stderr $testroot/stderr.expected
 	ret=$?
 	if [ $ret -ne 0 ]; then
@@ -459,3 +460,4 @@ run_test test_tag_create
 run_test test_tag_list
 run_test test_tag_list_lightweight
 run_test test_tag_create_ssh_signed
+run_test test_tag_create_ssh_signed_missing_key