diff --git a/_AutoinstallCreator/test_update.py b/_AutoinstallCreator/test_update.py index 469e49c4..cb3e662e 100644 --- a/_AutoinstallCreator/test_update.py +++ b/_AutoinstallCreator/test_update.py @@ -11,9 +11,11 @@ _root_path: str = os.path.dirname(_self_path) _tools_path: str = os.path.join(_root_path, '.tools') -busybox_exe_path = 'busybox' +busybox_exe_path: str = 'busybox' +update_script_name: str = 'update.sh' if sys.platform.startswith('win'): - busybox_exe_path: str = os.path.join(_tools_path, 'busybox.exe') + busybox_exe_path = os.path.join(_tools_path, 'busybox.exe') + update_script_name = 'update.bat' if _root_path not in sys.path: sys.path.append(_root_path) @@ -71,7 +73,7 @@ def test_update_to_new_version(self): io_tools.write_text(os.path.join(_self_tmp_path, self.test_old_version, '_AutoinstallCreator', 'version.txt'), self.test_old_version) - result = subprocess.run([os.path.join(_self_tmp_path, self.test_old_version, 'update.bat')], + result = subprocess.run([os.path.join(_self_tmp_path, self.test_old_version, update_script_name)], env={ **os.environ, 'MOCK_AUTOINSTALLCREATOR_VERSION_BODY': self.version_str,