mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-08-24 18:36:25 +00:00
Update tests for changes in command fn names
This commit is contained in:
parent
f8cf3547d3
commit
cfcfaf9c4e
|
@ -131,7 +131,7 @@ test_success (RepositoryInfo *info,
|
||||||
gboolean ret;
|
gboolean ret;
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
|
||||||
ret = gitg_shell_run_sync (gitg_command_newv (info->repository,
|
ret = gitg_shell_run_sync (gitg_command_new (info->repository,
|
||||||
"rev-parse",
|
"rev-parse",
|
||||||
"HEAD",
|
"HEAD",
|
||||||
NULL),
|
NULL),
|
||||||
|
@ -148,7 +148,7 @@ test_fail (RepositoryInfo *info,
|
||||||
gboolean ret;
|
gboolean ret;
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
|
||||||
ret = gitg_shell_run_sync (gitg_command_newv (info->repository,
|
ret = gitg_shell_run_sync (gitg_command_new (info->repository,
|
||||||
"bogus",
|
"bogus",
|
||||||
NULL),
|
NULL),
|
||||||
&error);
|
&error);
|
||||||
|
@ -166,7 +166,7 @@ test_output (RepositoryInfo *info,
|
||||||
gchar **ret;
|
gchar **ret;
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
|
||||||
ret = gitg_shell_run_sync_with_output (gitg_command_newv (info->repository,
|
ret = gitg_shell_run_sync_with_output (gitg_command_new (info->repository,
|
||||||
"rev-parse",
|
"rev-parse",
|
||||||
"HEAD",
|
"HEAD",
|
||||||
NULL),
|
NULL),
|
||||||
|
@ -188,7 +188,7 @@ test_input (void)
|
||||||
gchar const *input = "Hello world";
|
gchar const *input = "Hello world";
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
|
||||||
ret = gitg_shell_run_sync_with_input_and_output (gitg_command_newv (NULL,
|
ret = gitg_shell_run_sync_with_input_and_output (gitg_command_new (NULL,
|
||||||
"cat",
|
"cat",
|
||||||
"-",
|
"-",
|
||||||
NULL),
|
NULL),
|
||||||
|
@ -212,8 +212,8 @@ test_pipe (void)
|
||||||
|
|
||||||
ret = gitg_shell_run_sync_with_outputv (FALSE,
|
ret = gitg_shell_run_sync_with_outputv (FALSE,
|
||||||
&error,
|
&error,
|
||||||
gitg_command_newv (NULL, "echo", input, NULL),
|
gitg_command_new (NULL, "echo", input, NULL),
|
||||||
gitg_command_newv (NULL, "cat", "-", NULL),
|
gitg_command_new (NULL, "cat", "-", NULL),
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
g_assert_no_error (error);
|
g_assert_no_error (error);
|
||||||
|
|
Loading…
Reference in a new issue