@@ -939,7 +939,7 @@ def test_cmake(self, test_dir, output_file, cmake_args):
939939 cmakelistsdir = test_file('cmake', test_dir)
940940 builddir = 'out_' + generator.replace(' ', '_').lower()
941941 os.mkdir(builddir)
942- with utils .chdir(builddir):
942+ with common .chdir(builddir):
943943 # Run Cmake
944944 cmd = [EMCMAKE, 'cmake'] + cmake_args + ['-G', generator, cmakelistsdir]
945945
@@ -3119,7 +3119,7 @@ def test_scons(self):
31193119 # this test copies the site_scons directory alongside the test
31203120 shutil.copytree(test_file('scons/simple'), 'test')
31213121 shutil.copytree(path_from_root('tools/scons/site_scons'), Path('test/site_scons'))
3122- with utils .chdir('test'):
3122+ with common .chdir('test'):
31233123 self.run_process(['scons'])
31243124 output = self.run_js('scons_integration.js', assert_returncode=5)
31253125 self.assertContained('If you see this - the world is all right!', output)
@@ -3146,7 +3146,7 @@ def test_scons_env(self):
31463146 }
31473147 })
31483148
3149- with utils .chdir('test'):
3149+ with common .chdir('test'):
31503150 self.run_process(['scons', '--expected-env', expected_to_propagate])
31513151
31523152 @requires_scons
@@ -3165,13 +3165,13 @@ def test_scons_env_no_emscons(self):
31653165 }
31663166 })
31673167
3168- with utils .chdir('test'):
3168+ with common .chdir('test'):
31693169 self.run_process(['scons', '--expected-env', expected_to_propagate])
31703170
31713171 @requires_scons
31723172 def test_emscons(self):
31733173 shutil.copytree(test_file('scons/simple'), 'test')
3174- with utils .chdir('test'):
3174+ with common .chdir('test'):
31753175 self.run_process([path_from_root('emscons'), 'scons'])
31763176 output = self.run_js('scons_integration.js', assert_returncode=5)
31773177 self.assertContained('If you see this - the world is all right!', output)
@@ -3192,7 +3192,7 @@ def test_emscons_env(self):
31923192 }
31933193 })
31943194
3195- with utils .chdir('test'):
3195+ with common .chdir('test'):
31963196 self.run_process([path_from_root('emscons'), 'scons', '--expected-env', expected_to_propagate])
31973197
31983198 def test_embind_fail(self):
0 commit comments