mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-11 20:58:45 +03:00
Merge pull request #2498 from lucab/ups/test-assert-strings
tests: assert mandatory values are present
This commit is contained in:
commit
365559eaa8
@ -31,12 +31,14 @@ gboolean
|
||||
ot_test_run_libtest (const char *cmd, GError **error)
|
||||
{
|
||||
const char *srcdir = g_getenv ("G_TEST_SRCDIR");
|
||||
g_autoptr(GPtrArray) argv = g_ptr_array_new ();
|
||||
g_autoptr(GString) cmdstr = g_string_new ("");
|
||||
g_assert (srcdir != NULL);
|
||||
g_assert (cmd != NULL);
|
||||
|
||||
g_autoptr(GPtrArray) argv = g_ptr_array_new ();
|
||||
g_ptr_array_add (argv, "bash");
|
||||
g_ptr_array_add (argv, "-c");
|
||||
|
||||
g_autoptr(GString) cmdstr = g_string_new ("");
|
||||
g_string_append (cmdstr, "set -xeuo pipefail; . ");
|
||||
g_string_append (cmdstr, srcdir);
|
||||
g_string_append (cmdstr, "/tests/libtest.sh; ");
|
||||
|
Loading…
x
Reference in New Issue
Block a user