]> sourceware.org Git - lvm2.git/commitdiff
test: Run the testcases chdir'd into --testdir.
authorPetr Rockai <prockai@redhat.com>
Thu, 26 Jun 2014 23:23:14 +0000 (01:23 +0200)
committerPetr Rockai <prockai@redhat.com>
Thu, 5 Feb 2015 12:47:18 +0000 (13:47 +0100)
test/lib/runner.cpp

index 7f1f495d60bbf76fd772d0a6b4991a6974899afb..bfcea91f1dd2ce509d5faee967008baa7aee164e 100644 (file)
@@ -270,6 +270,7 @@ struct TestCase {
                        exit(201);
                } else if (pid == 0) {
                        io.close();
+                       chdir( options.testdir.c_str() );
                        setenv("LVM_TEST_FLAVOUR", flavour.c_str(), 1);
                        child.exec();
                } else {
This page took 0.039113 seconds and 5 git commands to generate.