Skip to content

Commit 34a0d71

Browse files
committed
REMOVE BEFORE MERGE: Some debug logs for deletion failures
1 parent a74dc7c commit 34a0d71

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/t/test_make.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,22 @@ def test_1(self, completion):
1212

1313
@pytest.mark.complete("make .", cwd="make", require_cmd=True)
1414
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)
1520
"""Hidden targets."""
1621
assert completion == ".cache/ .test_passes".split()
1722
os.remove(f"{bash.cwd}/make/extra_makefile")
1823

1924
@pytest.mark.complete("make .cache/", cwd="make", require_cmd=True)
2025
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)
2131
assert completion == ".cache/1 .cache/2".split()
2232
os.remove(f"{bash.cwd}/make/extra_makefile")
2333

@@ -31,6 +41,11 @@ def test_5(self, completion):
3141

3242
@pytest.mark.complete("make ", cwd="make", require_cmd=True)
3343
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)
3449
assert completion == "all clean extra_makefile install sample".split()
3550
os.remove(f"{bash.cwd}/make/extra_makefile")
3651

0 commit comments

Comments
 (0)