From c5fc542c8124ff1dc8efe7619a938ad655d1ed0c Mon Sep 17 00:00:00 2001 From: nakst <> Date: Sat, 5 Feb 2022 09:49:14 +0000 Subject: [PATCH] AutomationRunTests don't overwrite cross compiler path --- util/start.script | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util/start.script b/util/start.script index a0cd695..0f411df 100644 --- a/util/start.script +++ b/util/start.script @@ -193,7 +193,9 @@ void AutomationBuildMinimal() { void AutomationRunTests() { Setup(true); - assert FileWriteAll("bin/build_config.ini", "accepted_license=1\n"); + str[] oldBuildConfig = StringSplitByCharacter(FileReadAll("bin/build_config.ini"), "\n", true); + for int i = 0; i < oldBuildConfig:len(); i += 1 { if oldBuildConfig[i] == "automated_build=1" { oldBuildConfig[i] = "automated_build=0"; } } + assert FileWriteAll("bin/build_config.ini", StringJoin(oldBuildConfig, "\n", false)); assert FileWriteAll("bin/config.ini", "Flag.ENABLE_POSIX_SUBSYSTEM=1\n"); assert FileWriteAll("bin/extra_applications.ini", "desktop/api_tests.ini\n"); assert SystemShellExecute("bin/build build");