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:
Simon McVittie 2016-06-12 09:21:19 -04:00 committed by Atomic Bot
parent 8011d8c627
commit 4801e9b30b
1 changed files with 2 additions and 2 deletions

View File

@ -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);