tests: don't fail if TestGitStorage can reach the server
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b554b3d060
commit
2a876be844
@ -57,7 +57,11 @@ static void localRemoteCleanup()
|
||||
|
||||
// this odd comparison is used to tell that we were able to connect to the remote repo;
|
||||
// in the error case we get the full cloudTestRepo name back as "branch"
|
||||
QCOMPARE(QString(branch), randomBranch);
|
||||
if (branch != randomBranch) {
|
||||
// dang, we weren't able to connect to the server - let's not fail the test
|
||||
// but just give up
|
||||
QSKIP("wasn't able to connect to server");
|
||||
}
|
||||
|
||||
// force delete any remote branch of that name on the server (and ignore any errors)
|
||||
delete_remote_branch(git_repo, remote, branch);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user