summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-07-15 11:52:21 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-07-15 11:52:21 +0000
commit3a4d4afe6fd0f3f0620bd4d6a0b34f79e660a950 (patch)
treee919c7b1239946f235acb8f8976fea83eeb3fa81
parent2e3db42050e7863734a26640f522987224e23277 (diff)
downloaddrakx-3a4d4afe6fd0f3f0620bd4d6a0b34f79e660a950.tar
drakx-3a4d4afe6fd0f3f0620bd4d6a0b34f79e660a950.tar.gz
drakx-3a4d4afe6fd0f3f0620bd4d6a0b34f79e660a950.tar.bz2
drakx-3a4d4afe6fd0f3f0620bd4d6a0b34f79e660a950.tar.xz
drakx-3a4d4afe6fd0f3f0620bd4d6a0b34f79e660a950.zip
ease testing of standalone's when non-superuser via setting TESTING=1
-rw-r--r--perl-install/interactive.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm
index b22e703a9..644e75a29 100644
--- a/perl-install/interactive.pm
+++ b/perl-install/interactive.pm
@@ -79,7 +79,7 @@ sub vnew {
require c;
if ($su) {
$ENV{PATH} = "/sbin:/usr/sbin:$ENV{PATH}";
- $su = '' if $::testing;
+ $su = '' if $::testing || $ENV{TESTING};
}
if ($ENV{DISPLAY} && system('/usr/X11R6/bin/xtest') == 0) {
if ($su && $>) {