From dfb664a1822f41cbd4f1f5a8ce6fcac4e1547bf6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 2 Oct 2010 14:23:43 -0700 Subject: 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") --- selftest/selftest.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'selftest/selftest.pl') 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 -- cgit v1.2.3