File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,11 @@ def run(self):
133133 open_process .kill ()
134134 if platform .system () == 'Linux' :
135135 # Linux seems to have a problem printing out too much information, so truncate it
136- logging .info ("Test result: %s (Log might be truncated)" , self .logs [:64000 ])
136+ # It can also fail to save the logs correctly for some reason, so check for that
137+ if self .logs is None :
138+ logging .warning ("Unable to print the logs" )
139+ else :
140+ logging .info ("Test result: %s (Log might be truncated)" , self .logs [:64000 ])
137141 else :
138142 logging .info ("Test result: %s" , self .logs )
139143 logging .info ("Finished running %s" , self .testapp_path )
Original file line number Diff line number Diff line change @@ -126,17 +126,13 @@ static AppBuilderHelper() {
126126 continue ;
127127 }
128128 }
129- // This will set the appropriate values in Unity Preferences -> External Tools.
130- //SetUnityPrefWithEnvVar(ANDROID_SDK_KEY, ANDROID_SDK_ENVVAR);
131- //SetUnityPrefWithEnvVar(ANDROID_NDK_KEY, ANDROID_NDK_ENVVAR);
132- //SetUnityPrefWithEnvVar(ANDROID_JDK_KEY, ANDROID_JDK_ENVVAR);
133129#if UNITY_ANDROID
134130#if UNITY_2019_3_OR_NEWER
135- // Unity 2019.3+ introduced new method of set values in Unity Preferences -> External Tools
136- AndroidExternalToolsSettings . sdkRootPath = null ; //System.Environment.GetEnvironmentVariable(ANDROID_SDK_ENVVAR);
137- AndroidExternalToolsSettings . ndkRootPath = null ; //System.Environment.GetEnvironmentVariable(ANDROID_NDK_ENVVAR);
138- AndroidExternalToolsSettings . jdkRootPath = null ; //System.Environment.GetEnvironmentVariable(ANDROID_JDK_ENVVAR);
139- AndroidExternalToolsSettings . gradlePath = null ; // use default Gradle tool integrated in Unity
131+ // Make sure it uses the default Android tools installed with Unity.
132+ AndroidExternalToolsSettings . sdkRootPath = null ;
133+ AndroidExternalToolsSettings . ndkRootPath = null ;
134+ AndroidExternalToolsSettings . jdkRootPath = null ;
135+ AndroidExternalToolsSettings . gradlePath = null ;
140136#endif
141137#endif
142138 }
You can’t perform that action at this time.
0 commit comments