Rev 177: Wrote test to ensure that the author of the merge commit is the sender of the merge request. in http://bzr.daniel-watkins.co.uk/pqm/246846

Daniel Watkins daniel at daniel-watkins.co.uk
Tue Jul 15 16:26:52 BST 2008


At http://bzr.daniel-watkins.co.uk/pqm/246846

------------------------------------------------------------
revno: 177
revision-id: daniel at daniel-watkins.co.uk-20080715152532-50js2kxrn42un0rp
parent: robertc at robertcollins.net-20080710074340-dl0w25nbutl88sz2
committer: Daniel Watkins <daniel at daniel-watkins.co.uk>
branch nick: 246846
timestamp: Tue 2008-07-15 16:25:32 +0100
message:
  Wrote test to ensure that the author of the merge commit is the sender of the merge request.
-------------- next part --------------
=== modified file 'tests/test-framework'
--- a/tests/test-framework	2007-06-27 01:05:17 +0000
+++ b/tests/test-framework	2008-07-15 15:25:32 +0000
@@ -503,5 +503,8 @@
   verbose "checking for revision \"$1\" in archive \"$2\""
   output=$(pqm_bzr log --message "$summary" ${PQM_ARCHIVE_DIR}/${archive} | grep "revno")
   test "$output" = "revno: $revision"
+  verbose "checking for author \"${USERID}\" in archive \"$2\""
+  author=$(pqm_bzr log --message "$summary" ${PQM_ARCHIVE_DIR}/${archive} | grep "author")
+  test "$author" = "author: ${USERID}"
   endverbose
 }



More information about the bazaar-commits mailing list