mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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
1 changed files with 5 additions and 1 deletions
|
@ -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…
Reference in a new issue