clean after tests/apis

This commit is contained in:
Roland Puntaier 2020-03-06 18:40:41 +01:00
parent daefe2f67f
commit 79fe3d948f
1 changed files with 6 additions and 1 deletions

View File

@ -146,7 +146,10 @@ def test(ctx):
nd3 = bld.srcnode.make_node('e.e+(e).txt')
nd3.write("test")
create('src/a.txt')
os.remove("src/src")
try:
os.remove("src/src")
except FileNotFoundError:
pass
os.symlink("../src","src/src")
tt("ant_glob ->", len(bld.srcnode.ant_glob('*.txt', flat=False)), 2)
@ -188,3 +191,5 @@ def test(ctx):
if errors:
bld.fatal('There are test failures ^^')
remove('a')
remove('src')