diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2012-05-21 22:16:00 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2012-05-21 22:16:00 +0100 |
commit | d40f27c34fca5f571ad130157d8499413a4b6939 (patch) | |
tree | ca7e0a55c6f7ef69d27fc8aa8d4cb679da12d8ab /test/runtest | |
parent | 7d99e6a1f26e03dea6988a18bf950c428ff4b5aa (diff) |
Testsuite: more robust fix for SHELL vs /bin/sh, take two.
Diffstat (limited to 'test/runtest')
-rwxr-xr-x | test/runtest | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/test/runtest b/test/runtest index 3e961ca98..dac02779c 100755 --- a/test/runtest +++ b/test/runtest @@ -344,6 +344,9 @@ RESET_AFTER_EXTRA_LINE_READ: # But convert "name=the.local.host address=127.0.0.1" to use "localhost" s/name=the\.local\.host address=127\.0\.0\.1/name=localhost address=127.0.0.1/g; + # The name of the shell may vary + s/\s\Q$parm_shell\E\b/ ENV_SHELL/; + # Replace the path to the testsuite directory s?\Q$parm_cwd\E?TESTSUITE?g; @@ -391,9 +394,6 @@ RESET_AFTER_EXTRA_LINE_READ: # The message for a non-listening FIFO varies s/:[^:]+: while opening named pipe/: Error: while opening named pipe/; - # The name of the shell may vary - s/\s\Q$parm_shell\E\b/ SHELL/; - # Debugging output of lists of hosts may have different sort keys s/sort=\S+/sort=xx/ if /^\S+ (?:\d+\.){3}\d+ mx=\S+ sort=\S+/; @@ -2728,9 +2728,6 @@ if ($parm_hostname =~ /[[:upper:]]/) print "\n*** Host name has upper case characters: this may cause problems ***\n\n"; } -# Find the user's shell - -$parm_shell = $ENV{'SHELL'}; ################################################## @@ -3051,6 +3048,10 @@ foreach $basedir ("aux-var", "dnszones") } } +# Set a user's shell, distinguishable from /bin/sh + +symlink("/bin/sh","aux-var/sh"); +$ENV{'SHELL'} = $parm_shell = $parm_cwd . "/aux-var/sh"; ################################################## # Create fake DNS zones for this host # |