[PATCH] test-acl fails on AIX
Jim Hague
jim.hague at acm.org
Tue Dec 9 04:31:54 CST 2008
# HG changeset patch
# User Jim Hague <jim.hague at acm.org>
# Date 1228398167 0
# Node ID 4eda16a40f47b300afd84eb55761d343459aba75
# Parent 6aafd75fb924b6b79fd5653e61efcdc29923ae48
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.
diff --git a/tests/test-acl b/tests/test-acl
--- a/tests/test-acl
+++ b/tests/test-acl
@@ -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
More information about the Mercurial-devel
mailing list