Skip to content

Commit a6fd9e9

Browse files
committed
Attempting to fix windows tests
1 parent 75c940b commit a6fd9e9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

AssetBundleBuilder.Tests/AssetBundleTestBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ protected Configuration CreateTestConfiguration(
6464
string? tempProjectPath = null) {
6565
// Create TOML string and parse it properly
6666
string sectionName = bundleName.Replace(".", "_");
67-
string tempProjectPathLine = tempProjectPath != null ? $"temp_project_path = \"{tempProjectPath}\"" : "";
67+
string tempProjectPathLine = tempProjectPath != null ? $"temp_project_path = \"{tempProjectPath.Replace("\\", "\\\\")}\"" : "";
6868
string tomlContent = $@"
6969
[global]
7070
unity_version = ""{unityVersion ?? "2022.3.35f1"}""
71-
unity_editor_path = ""{unityEditorPath ?? FindTestUnityPath()}""
71+
unity_editor_path = ""{(unityEditorPath ?? FindTestUnityPath()).Replace("\\", "\\\\")}""
7272
unity_hub_path = """"
7373
{tempProjectPathLine}
7474
clean_temp_project = true

0 commit comments

Comments
 (0)