Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
7507:8e76e9f67cb3 | 7512:0d488f7f321d |
---|---|
12 if test -f acl.config; then | 12 if test -f acl.config; then |
13 echo 'acl.config = """' | 13 echo 'acl.config = """' |
14 cat acl.config | 14 cat acl.config |
15 echo '"""' | 15 echo '"""' |
16 fi | 16 fi |
17 LOGNAME=$user hg --cwd a --debug push ../b | 17 # On AIX /etc/profile sets LOGNAME read-only. So |
18 # LOGNAME=$user hg --cws a --debug push ../b | |
19 # fails with "This variable is read only." | |
20 # Use env to work around this. | |
21 env LOGNAME=$user hg --cwd a --debug push ../b | |
18 hg --cwd b rollback | 22 hg --cwd b rollback |
19 hg --cwd b --quiet tip | 23 hg --cwd b --quiet tip |
20 echo | 24 echo |
21 } | 25 } |
22 | 26 |