Skip to content

Commit

Permalink
test: installpkg test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Jun 26, 2019
1 parent 1f7fdc6 commit 322ec19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/t/test_installpkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ def test_3(self, completion):
dirs = sorted(x for x in os.listdir(".") if os.path.isdir("./%s" % x))
assert completion == ["%s/" % x for x in dirs]

@pytest.mark.complete("installpkg --root ")
@pytest.mark.complete("installpkg ", cwd="slackware/home")
def test_4(self, completion):
expected = sorted(
[
"%s/" % x
for x in os.listdir("slackware/home")
if os.path.isdir("./%s" % x)
if os.path.isdir("./slackware/home/%s" % x)
]
+ [
x
for x in os.listdir("slackware/home")
if os.path.isfile("./%s" % x)
if os.path.isfile("./slackware/home/%s" % x)
and fnmatch.fnmatch(x, "*.t[bglx]z")
]
)
Expand Down

0 comments on commit 322ec19

Please sign in to comment.