From: Derrick Brashear Date: Thu, 21 Feb 2002 07:07:52 +0000 (+0000) Subject: test-suite-run-script-make-setup-not-use-localcell-inadvertantly-20020221 X-Git-Tag: openafs-devel-1_3_1 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=87843056e53f7ff72d20bae0837f9be31a7a33b7;p=packages%2Fo%2Fopenafs.git test-suite-run-script-make-setup-not-use-localcell-inadvertantly-20020221 was a case where we could end up testing "localcell" by accident --- diff --git a/src/tests/run-suite.pl b/src/tests/run-suite.pl index 5875bd602..0f93cef64 100755 --- a/src/tests/run-suite.pl +++ b/src/tests/run-suite.pl @@ -104,6 +104,14 @@ run("$openafsinitcmd->{'filesrv-start'}"); unwind("$openafsinitcmd->{'filesrv-stop'}"); unwind("/bin/rm -f $openafsdirpath->{'afslocaldir'}/BosConfig"); $shutdown_needed = 1; + +open(THISCELL, ">$openafsdirpath->{'afsconfdir'}/ThisCell"); +print THISCELL $cellname; +close THISCELL; +open(THISCELL, ">$openafsdirpath->{'afsconfdir'}/CellServDB"); +print THISCELL ">$cellname #test cell"; +close THISCELL; + run ("$openafsdirpath->{'afssrvbindir'}/bos setcellname $server $lcell -localauth ||true"); run ("$openafsdirpath->{'afssrvbindir'}/bos addhost $server $server -localauth ||true"); run("$openafsdirpath->{'afssrvbindir'}/bos adduser $server $admin -localauth");