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:
parent
8011d8c627
commit
4801e9b30b
|
|
@ -32,7 +32,7 @@ gboolean
|
|||
ot_test_run_libtest (const char *cmd, GError **error)
|
||||
{
|
||||
gboolean ret = FALSE;
|
||||
const char *builddir = g_getenv ("G_TEST_BUILDDIR");
|
||||
const char *srcdir = g_getenv ("G_TEST_SRCDIR");
|
||||
int estatus;
|
||||
g_autoptr(GPtrArray) argv = g_ptr_array_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_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, cmd);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue