Skip to content

Commit

Permalink
test/make: mark more cases as requiring command
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Apr 26, 2020
1 parent 6b42551 commit 6354520
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/t/test_make.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ class TestMake:
def test_1(self, completion):
assert completion == "Makefile"

@pytest.mark.complete("make .", cwd="make")
@pytest.mark.complete("make .", cwd="make", require_cmd=True)
def test_2(self, bash, completion):
"""Hidden targets."""
assert completion == ".cache/ .test_passes".split()
os.remove("%s/make/%s" % (bash.cwd, "extra_makefile"))

@pytest.mark.complete("make .cache/", cwd="make")
@pytest.mark.complete("make .cache/", cwd="make", require_cmd=True)
def test_3(self, bash, completion):
assert completion == "1 2".split()
os.remove("%s/make/%s" % (bash.cwd, "extra_makefile"))
Expand All @@ -29,7 +29,7 @@ def test_4(self, completion):
def test_5(self, completion):
assert completion

@pytest.mark.complete("make ", cwd="make")
@pytest.mark.complete("make ", cwd="make", require_cmd=True)
def test_6(self, bash, completion):
assert completion == "all clean extra_makefile install sample".split()
os.remove("%s/make/%s" % (bash.cwd, "extra_makefile"))
Expand All @@ -39,12 +39,12 @@ def test_6(self, bash, completion):
reason="Fails for some unknown reason on CentOS 6, "
"even though the behavior appears to be correct",
)
@pytest.mark.complete("make .cache/.", cwd="make")
@pytest.mark.complete("make .cache/.", cwd="make", require_cmd=True)
def test_7(self, bash, completion):
assert completion == ".1 .2".split()
os.remove("%s/make/%s" % (bash.cwd, "extra_makefile"))

@pytest.mark.complete("make -C make ")
@pytest.mark.complete("make -C make ", require_cmd=True)
def test_8(self, bash, completion):
assert completion == "all clean extra_makefile install sample".split()
os.remove("%s/make/%s" % (bash.cwd, "extra_makefile"))
Expand Down

0 comments on commit 6354520

Please sign in to comment.