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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user