mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 12:20:56 +00:00
No Bug - [mozversioncontrol] xfail 'test_branch.py' with git < 2.22.0, r=bhearsum
The 'git branch --show-current' flag didn't exist prior to that version. Differential Revision: https://phabricator.services.mozilla.com/D112043
This commit is contained in:
parent
11d793af7b
commit
002c099fc4
@ -2,7 +2,10 @@
|
|||||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
|
from distutils.version import LooseVersion
|
||||||
|
|
||||||
import mozunit
|
import mozunit
|
||||||
|
import pytest
|
||||||
|
|
||||||
from mozversioncontrol import get_repository_object
|
from mozversioncontrol import get_repository_object
|
||||||
|
|
||||||
@ -31,6 +34,9 @@ STEPS = {
|
|||||||
|
|
||||||
def test_branch(repo):
|
def test_branch(repo):
|
||||||
vcs = get_repository_object(repo.strpath)
|
vcs = get_repository_object(repo.strpath)
|
||||||
|
if vcs.name == "git" and LooseVersion(vcs.tool_version) < LooseVersion("2.22.0"):
|
||||||
|
pytest.xfail("`git branch --show-current` not implemented yet")
|
||||||
|
|
||||||
if vcs.name == "git":
|
if vcs.name == "git":
|
||||||
assert vcs.branch == "master"
|
assert vcs.branch == "master"
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user