tests: Fix cmd config file path
authorSimon Wilkinson <sxw@your-file-system.com>
Wed, 20 Jun 2012 20:55:25 +0000 (16:55 -0400)
committerDerrick Brashear <shadow@dementix.org>
Wed, 20 Jun 2012 21:01:54 +0000 (14:01 -0700)
Fix the configuration file path for the cmd test so that it works
when invoked from runtests

Change-Id: Id7d717e163abf5cfab2d551aaf08fb9967a87153
Reviewed-on: http://gerrit.openafs.org/7576
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>

tests/cmd/command-t.c

index e5f4ef6..b4718f3 100644 (file)
@@ -363,7 +363,7 @@ main(int argc, char **argv)
     if (getenv("SOURCE") == NULL)
        path = strdup("test1.conf");
     else
-       asprintf(&path, "%s/command/test1.conf", getenv("SOURCE"));
+       asprintf(&path, "%s/cmd/test1.conf", getenv("SOURCE"));
 
     cmd_SetCommandName("test");
     code = cmd_OpenConfigFile(path);