1. Thejesh GN
  2. commitsigs

Commits

Martin Geisler  committed 784a2cd

Show exit code in test output.

  • Participants
  • Parent commits 42d1320
  • Branches default

Comments (0)

Files changed (2)

File tests/test-commitsigs

View file
  • Ignore whitespace
 echo "% Commit with OpenSSL signature"
 hg commit -m "OpenSSL" -d '3000 0'
 
-hg verifysigs | sed 's|:[0-9a-f]\+:|:XXXXXXXXXXXX:|'
+hg verifysigs > output
+echo "% hg verifysigs (exit code: $?)"
+sed 's|:[0-9a-f]\+:|:XXXXXXXXXXXX:|' < output
 
 cat >> $HGRCPATH <<EOF
 [commitsigs]

File tests/test-commitsigs.out

View file
  • Ignore whitespace
 % Commit with no signature
 % Commit with GnuPG signature
 % Commit with OpenSSL signature
+% hg verifysigs (exit code: 1)
 0:XXXXXXXXXXXX: ** no signature
 1:XXXXXXXXXXXX: good gnupg signature
 2:XXXXXXXXXXXX: good openssl signature