summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/generator.ml7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/generator.ml b/src/generator.ml
index 03439aa0..67415412 100755
--- a/src/generator.ml
+++ b/src/generator.ml
@@ -3717,10 +3717,7 @@ int main (int argc, char *argv[])
guestfs_set_error_handler (g, print_error, NULL);
- srcdir = getenv (\"srcdir\");
- if (!srcdir) srcdir = \".\";
- chdir (srcdir);
- guestfs_set_path (g, \"appliance\");
+ guestfs_set_path (g, \"../appliance\");
filename = \"test1.img\";
fd = open (filename, O_WRONLY|O_CREAT|O_NOCTTY|O_NONBLOCK|O_TRUNC, 0666);
@@ -7182,7 +7179,7 @@ Run it from the top source directory using the command
generate_daemon_actions ();
close ();
- let close = output_to "tests.c" in
+ let close = output_to "capitests/tests.c" in
generate_tests ();
close ();