test-suite-create-cachedir-20020117
authorDerrick Brashear <shadow@dementia.org>
Thu, 17 Jan 2002 09:33:06 +0000 (09:33 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 17 Jan 2002 09:33:06 +0000 (09:33 +0000)
take care of case where no cache dir exists yet

src/tests/run-suite.pl

index 062fb5d..6d61cc5 100755 (executable)
@@ -141,6 +141,8 @@ run("$openafsdirpath->{'afssrvsbindir'}/vos create $server a root.afs -localauth
 $cachesize = $rl->readline("What size cache (in 1k blocks)? ") unless $cachesize;
 die "Please specify a cache size\n" unless $cachesize;
 
+mkdir "/usr/vice/cache", 0700;
+
 run("echo /afs:/usr/vice/cache:${cachesize} >$openafsdirpath->{'viceetcdir'}/cacheinfo");
 run("$openafsinitcmd->{'client-forcestart'}");
 my $afs_running = 0;