]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
test-suite-run-script-make-setup-not-use-localcell-inadvertantly-20020221 openafs-devel-1_3_1
authorDerrick Brashear <shadow@dementia.org>
Thu, 21 Feb 2002 07:07:52 +0000 (07:07 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 21 Feb 2002 07:07:52 +0000 (07:07 +0000)
was a case where we could end up testing "localcell" by accident

src/tests/run-suite.pl

index 5875bd60269961faf4d54c206f213f830f4c2540..0f93cef64050194c2fbbeebd17167dde3bf7232d 100755 (executable)
@@ -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");