Commit Diff


commit - d5775a924f8ec6caf66632ba97992ea7345cfb4e
commit + 492a65d96959699d932279aa01d107873d63e6d1
blob - f9e9feb14f2727ae89be67bb9bbc116c3ee8da1e
blob + 5f8cb3644ddc21b993a030dc0bd991e37aae5412
--- regress/cmdline/tag.sh
+++ regress/cmdline/tag.sh
@@ -362,8 +362,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
@@ -378,3 +379,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