diff tests/test-acl @ 7512:0d488f7f321d

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.
author Jim Hague <jim.hague@acm.org>
date Thu, 04 Dec 2008 13:42:47 +0000
parents 85237110c371
children bb5ea66789e3
line wrap: on
line diff
--- 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