Fix handling of some global variables and clear them properly

- move make_timeout to global and add it to clear_lists()
- add _modified_files and building_base to clear_lists()

This is needed to run tests that include prepare().
This commit is contained in:
Ralph Lange
2022-07-22 10:14:35 +02:00
parent d36800b2e0
commit 22b2e3f796
2 changed files with 4 additions and 3 deletions

View File

@@ -702,7 +702,6 @@ class TestAppveyorDetectContext(unittest.TestCase):
class TestSetupForBuild(unittest.TestCase):
args = Namespace(paths=[])
cue.building_base = True
if ci_os == 'windows':
choco_installs = ['make']
if ci_service != 'appveyor':
@@ -710,6 +709,7 @@ class TestSetupForBuild(unittest.TestCase):
sp.check_call(['choco', 'install', '-ry'] + choco_installs)
def setUp(self):
cue.building_base = True
if ci_service == 'appveyor':
os.environ['CONFIGURATION'] = 'default'
cue.detect_context()