libostreetest: include libtest.sh from srcdir, not builddir
Signed-off-by: Simon McVittie <smcv@debian.org> Closes: #337 Approved by: cgwalters
This commit is contained in:
1 parent
8011d8c627
commit
4801e9b30b
1 file changed
+2
-2
@@ -32,7 +32,7 @@ gboolean
|
|||||||
ot_test_run_libtest (const char *cmd, GError **error)
|
ot_test_run_libtest (const char *cmd, GError **error)
|
||||||
{
|
{
|
||||||
gboolean ret = FALSE;
|
gboolean ret = FALSE;
|
||||||
const char *builddir = g_getenv ("G_TEST_BUILDDIR");
|
const char *srcdir = g_getenv ("G_TEST_SRCDIR");
|
||||||
int estatus;
|
int estatus;
|
||||||
g_autoptr(GPtrArray) argv = g_ptr_array_new ();
|
g_autoptr(GPtrArray) argv = g_ptr_array_new ();
|
||||||
g_autoptr(GString) cmdstr = g_string_new ("");
|
g_autoptr(GString) cmdstr = g_string_new ("");
|
||||||
@@ -41,7 +41,7 @@ ot_test_run_libtest (const char *cmd, GError **error)
|
|||||||
g_ptr_array_add (argv, "-c");
|
g_ptr_array_add (argv, "-c");
|
||||||
|
|
||||||
g_string_append (cmdstr, "set -xeuo pipefail; . ");
|
g_string_append (cmdstr, "set -xeuo pipefail; . ");
|
||||||
g_string_append (cmdstr, builddir);
|
g_string_append (cmdstr, srcdir);
|
||||||
g_string_append (cmdstr, "/tests/libtest.sh; ");
|
g_string_append (cmdstr, "/tests/libtest.sh; ");
|
||||||
g_string_append (cmdstr, cmd);
|
g_string_append (cmdstr, cmd);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user