[Tests] Avoid caching bogus 3D models in copy_file tests

This commit is contained in:
Salvador E. Tropea 2023-01-28 11:55:27 -03:00
parent aa56322241
commit ac14910505
1 changed files with 4 additions and 0 deletions

View File

@ -1491,7 +1491,9 @@ def test_copy_files_1(test_dir):
""" Copy files and 3D models """
prj = 'copy_files'
ctx = context.TestContext(test_dir, prj, 'copy_files_1', 'test.files')
os.environ['KIBOT_3D_MODELS'] = '/tmp'
ctx.run(kicost=True) # We use the fake web server
del os.environ['KIBOT_3D_MODELS']
# The modified PCB
ctx.expect_out_file(prj+'.kicad_pcb', sub=True)
# The 3D models
@ -1522,7 +1524,9 @@ def test_copy_files_2(test_dir):
""" Copy files and 3D models """
prj = 'copy_files'
ctx = context.TestContext(test_dir, prj, 'copy_files_2', 'test.files')
os.environ['KIBOT_3D_MODELS'] = '/tmp'
ctx.run(kicost=True) # We use the fake web server
del os.environ['KIBOT_3D_MODELS']
# The modified PCB
ctx.expect_out_file(prj+'.kicad_pcb', sub=True)
# The 3D models