diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-10-02 14:23:43 -0700 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-10-02 21:11:53 -0700 |
commit | dfb664a1822f41cbd4f1f5a8ce6fcac4e1547bf6 (patch) | |
tree | c4271f8edf108c8d4e4b353be3c67f9fb68a7ca1 /selftest/selftest.pl | |
parent | 29e1a847ddb28aee8ae04578b74cb8ab97427b96 (diff) | |
download | samba-dfb664a1822f41cbd4f1f5a8ce6fcac4e1547bf6.tar.gz samba-dfb664a1822f41cbd4f1f5a8ce6fcac4e1547bf6.tar.bz2 samba-dfb664a1822f41cbd4f1f5a8ce6fcac4e1547bf6.zip |
s4-selftest: support 'make testenv SCREEN=1'
this can be used to start a test envioronment in screen windows.
Use:
make testenv SCREEN=1 SELFTEST_TESTENV=dc
to launch just one environment (in this case, "dc")
Diffstat (limited to 'selftest/selftest.pl')
-rwxr-xr-x | selftest/selftest.pl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/selftest/selftest.pl b/selftest/selftest.pl index d102d43779..08ee52c55e 100755 --- a/selftest/selftest.pl +++ b/selftest/selftest.pl @@ -923,11 +923,12 @@ if ($opt_testenv) { die("Unable to setup environment $testenv_name") unless ($testenv_vars); $ENV{PIDDIR} = $testenv_vars->{PIDDIR}; + $ENV{ENVNAME} = $testenv_name; my $envvarstr = exported_envvars_str($testenv_vars); - my $term = ($ENV{TERMINAL} or "xterm"); - system("$term -e 'echo -e \" + my $term = ($ENV{TERMINAL} or "xterm -e"); + system("$term 'echo -e \" Welcome to the Samba4 Test environment '$testenv_name' This matches the client environment used in make test |