diff options
Diffstat (limited to 'tests/online/clone.c')
-rw-r--r-- | tests/online/clone.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/tests/online/clone.c b/tests/online/clone.c index 9919e8b06..fd39afbd4 100644 --- a/tests/online/clone.c +++ b/tests/online/clone.c @@ -200,15 +200,10 @@ void test_online_clone__cred_callback_failure_return_code_is_tunnelled(void) const char *remote_url = cl_getenv("GITTEST_REMOTE_URL"); const char *remote_user = cl_getenv("GITTEST_REMOTE_USER"); - if (!remote_url) { - printf("GITTEST_REMOTE_URL unset; skipping clone test\n"); - return; - } - - if (!remote_user) { - printf("GITTEST_REMOTE_USER unset; skipping clone test\n"); - return; - } + if (!remote_url) + cl_skip("GITTEST_REMOTE_URL unset"); + if (!remote_user) + cl_skip("GITTEST_REMOTE_USER unset"); g_options.remote_callbacks.credentials = cred_failure_cb; |