bug-vc-dwim
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-vc-dwim] [PATCH] tests: don't fail symlinked-changelog when email n


From: Jim Meyering
Subject: [Bug-vc-dwim] [PATCH] tests: don't fail symlinked-changelog when email not define in ~/.bazaar
Date: Sun, 07 Nov 2010 18:15:57 +0100

Avoid a test failure for those who don't have an email setting
in ~/.bazaar/bazaar.conf:

>From 277cbfee73d8138ca7b1bc18ccd4eca9d767259f Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Sun, 7 Nov 2010 18:14:50 +0100
Subject: [PATCH] tests: don't fail symlinked-changelog when email not define in 
~/.bazaar

* tests/symlinked-changelog: Set/export HOME, and then run bzr whoami,
to keep this test from failing due to "bzr: ERROR: Unable to determine
your name.".
---
 ChangeLog                 |    7 +++++++
 tests/symlinked-changelog |    6 ++++++
 2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 12cbcc0..bd49133 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-11-07  Jim Meyering  <address@hidden>
+
+       tests: don't fail symlinked-changelog when email not define in ~/.bazaar
+       * tests/symlinked-changelog: Set/export HOME, and then run bzr whoami,
+       to keep this test from failing due to "bzr: ERROR: Unable to determine
+       your name.".
+
 2010-11-06  Jim Meyering  <address@hidden>

        build: configure for gnu-web-doc-update
diff --git a/tests/symlinked-changelog b/tests/symlinked-changelog
index c490b7b..2a4c106 100755
--- a/tests/symlinked-changelog
+++ b/tests/symlinked-changelog
@@ -21,6 +21,12 @@ cat <<EOF > d/ChangeLog || framework_failure=1
 2006-09-04  Jim Meyering  <address@hidden>

 EOF
+
+# Do not require any bzr set-up in home-dir of someone running this test.
+HOME=`pwd`
+export HOME
+bzr whoami 'U. Ser <address@hidden>'
+
 (cd m && bzr init && bzr add . && bzr ci -m m . ) || framework_failure=1
 ln -s ../d/ChangeLog m
 echo a >> m/f
--
1.7.3.2.193.g78bbb



reply via email to

[Prev in Thread] Current Thread [Next in Thread]