@@ -12,12 +12,22 @@ def test_1(self, completion):
12
12
13
13
@pytest .mark .complete ("make ." , cwd = "make" , require_cmd = True )
14
14
def test_2 (self , bash , completion ):
15
+ import glob
16
+
17
+ print (f"Files in { bash .cwd } /make" )
18
+ for filename in glob .iglob (f"{ bash .cwd } /make/**/*" , recursive = True ):
19
+ print (filename )
15
20
"""Hidden targets."""
16
21
assert completion == ".cache/ .test_passes" .split ()
17
22
os .remove (f"{ bash .cwd } /make/extra_makefile" )
18
23
19
24
@pytest .mark .complete ("make .cache/" , cwd = "make" , require_cmd = True )
20
25
def test_3 (self , bash , completion ):
26
+ import glob
27
+
28
+ print (f"Files in { bash .cwd } /make" )
29
+ for filename in glob .iglob (f"{ bash .cwd } /make/**/*" , recursive = True ):
30
+ print (filename )
21
31
assert completion == ".cache/1 .cache/2" .split ()
22
32
os .remove (f"{ bash .cwd } /make/extra_makefile" )
23
33
@@ -31,6 +41,11 @@ def test_5(self, completion):
31
41
32
42
@pytest .mark .complete ("make " , cwd = "make" , require_cmd = True )
33
43
def test_6 (self , bash , completion ):
44
+ import glob
45
+
46
+ print (f"Files in { bash .cwd } /make" )
47
+ for filename in glob .iglob (f"{ bash .cwd } /make/**/*" , recursive = True ):
48
+ print (filename )
34
49
assert completion == "all clean extra_makefile install sample" .split ()
35
50
os .remove (f"{ bash .cwd } /make/extra_makefile" )
36
51
0 commit comments