Fix test-acl failure on AIX due to read only LOGNAME.
authorJim Hague <jim.hague@acm.org>
Thu, 04 Dec 2008 13:42:47 +0000
changeset 7512 0d488f7f321d
parent 7507 8e76e9f67cb3
child 7513 fed8f75f29ce
child 7518 dd66d161a14b
Fix test-acl failure on AIX due to read only LOGNAME. On AIX /etc/profile sets LOGNAME read only. This causes test-acl to fail when it comes to set LOGNAME in do_push(). Work around this by using env to set LOGNAME and run the command.
tests/test-acl
--- a/tests/test-acl	Thu Dec 11 22:59:35 2008 +0100
+++ b/tests/test-acl	Thu Dec 04 13:42:47 2008 +0000
@@ -14,7 +14,11 @@
 	cat acl.config
 	echo '"""'
     fi
-    LOGNAME=$user hg --cwd a --debug push ../b
+    # On AIX /etc/profile sets LOGNAME read-only. So
+    #  LOGNAME=$user hg --cws a --debug push ../b
+    # fails with "This variable is read only."
+    # Use env to work around this.
+    env LOGNAME=$user hg --cwd a --debug push ../b
     hg --cwd b rollback
     hg --cwd b --quiet tip
     echo