diff options
Diffstat (limited to 'src/test/burn/WixTestTools')
-rw-r--r-- | src/test/burn/WixTestTools/BundleInstaller.cs | 4 | ||||
-rw-r--r-- | src/test/burn/WixTestTools/MSIExec.cs | 14 | ||||
-rw-r--r-- | src/test/burn/WixTestTools/TestTool.cs | 2 |
3 files changed, 14 insertions, 6 deletions
diff --git a/src/test/burn/WixTestTools/BundleInstaller.cs b/src/test/burn/WixTestTools/BundleInstaller.cs index 5551d3c0..0f2cfa8f 100644 --- a/src/test/burn/WixTestTools/BundleInstaller.cs +++ b/src/test/burn/WixTestTools/BundleInstaller.cs | |||
@@ -28,6 +28,8 @@ namespace WixTestTools | |||
28 | 28 | ||
29 | public int? AlternateExitCode { get; set; } | 29 | public int? AlternateExitCode { get; set; } |
30 | 30 | ||
31 | public string LogDirectory { get; set; } | ||
32 | |||
31 | public int? LastExitCode { get; set; } | 33 | public int? LastExitCode { get; set; } |
32 | 34 | ||
33 | /// <summary> | 35 | /// <summary> |
@@ -194,7 +196,7 @@ namespace WixTestTools | |||
194 | sb.Append(" -quiet"); | 196 | sb.Append(" -quiet"); |
195 | 197 | ||
196 | // Generate the log file name. | 198 | // Generate the log file name. |
197 | string logFile = Path.Combine(Path.GetTempPath(), String.Format("{0}_{1}_{2:yyyyMMddhhmmss}_{4}_{3}.log", this.TestGroupName, this.TestName, DateTime.UtcNow, Path.GetFileNameWithoutExtension(this.Bundle), mode)); | 199 | string logFile = Path.Combine(this.LogDirectory ?? Path.GetTempPath(), String.Format("{0}_{1}_{2:yyyyMMddhhmmss}_{4}_{3}.log", this.TestGroupName, this.TestName, DateTime.UtcNow, Path.GetFileNameWithoutExtension(this.Bundle), mode)); |
198 | sb.AppendFormat(" -log \"{0}\"", logFile); | 200 | sb.AppendFormat(" -log \"{0}\"", logFile); |
199 | 201 | ||
200 | // Set operation. | 202 | // Set operation. |
diff --git a/src/test/burn/WixTestTools/MSIExec.cs b/src/test/burn/WixTestTools/MSIExec.cs index a10a48d6..5f57da7b 100644 --- a/src/test/burn/WixTestTools/MSIExec.cs +++ b/src/test/burn/WixTestTools/MSIExec.cs | |||
@@ -110,7 +110,7 @@ namespace WixTestTools | |||
110 | this.NoRestart = true; | 110 | this.NoRestart = true; |
111 | this.ForceRestart = false; | 111 | this.ForceRestart = false; |
112 | this.PromptRestart = false; | 112 | this.PromptRestart = false; |
113 | this.LogFile = string.Empty; | 113 | this.LogFile = String.Empty; |
114 | this.LoggingOptions = MSIExecLoggingOptions.VOICEWARMUP; | 114 | this.LoggingOptions = MSIExecLoggingOptions.VOICEWARMUP; |
115 | this.OtherArguments = String.Empty; | 115 | this.OtherArguments = String.Empty; |
116 | } | 116 | } |
@@ -230,14 +230,14 @@ namespace WixTestTools | |||
230 | } | 230 | } |
231 | 231 | ||
232 | // logfile and logging options | 232 | // logfile and logging options |
233 | if (0 != loggingOptionsString.Length || !string.IsNullOrEmpty(this.LogFile)) | 233 | if (0 != loggingOptionsString.Length || !String.IsNullOrEmpty(this.LogFile)) |
234 | { | 234 | { |
235 | arguments.Append(" /l"); | 235 | arguments.Append(" /l"); |
236 | if (0 != loggingOptionsString.Length) | 236 | if (0 != loggingOptionsString.Length) |
237 | { | 237 | { |
238 | arguments.AppendFormat("{0} ", loggingOptionsString); | 238 | arguments.AppendFormat("{0} ", loggingOptionsString); |
239 | } | 239 | } |
240 | if (!string.IsNullOrEmpty(this.LogFile)) | 240 | if (!String.IsNullOrEmpty(this.LogFile)) |
241 | { | 241 | { |
242 | arguments.AppendFormat(" \"{0}\" ", this.LogFile); | 242 | arguments.AppendFormat(" \"{0}\" ", this.LogFile); |
243 | } | 243 | } |
@@ -268,7 +268,7 @@ namespace WixTestTools | |||
268 | }; | 268 | }; |
269 | 269 | ||
270 | // product | 270 | // product |
271 | if (!string.IsNullOrEmpty(this.Product)) | 271 | if (!String.IsNullOrEmpty(this.Product)) |
272 | { | 272 | { |
273 | arguments.AppendFormat(" \"{0}\" ", this.Product); | 273 | arguments.AppendFormat(" \"{0}\" ", this.Product); |
274 | } | 274 | } |
@@ -311,6 +311,12 @@ namespace WixTestTools | |||
311 | ERROR_CALL_NOT_IMPLEMENTED = 120, | 311 | ERROR_CALL_NOT_IMPLEMENTED = 120, |
312 | 312 | ||
313 | /// <summary> | 313 | /// <summary> |
314 | /// ERROR_FILENAME_EXCED_RANGE 206 | ||
315 | /// The filename or extension is too long. | ||
316 | /// </summary> | ||
317 | ERROR_FILENAME_EXCED_RANGE = 206, | ||
318 | |||
319 | /// <summary> | ||
314 | /// ERROR_APPHELP_BLOCK 1259 | 320 | /// ERROR_APPHELP_BLOCK 1259 |
315 | /// If Windows Installer determines a product may be incompatible with the current operating system, | 321 | /// If Windows Installer determines a product may be incompatible with the current operating system, |
316 | /// it displays a dialog box informing the user and asking whether to try to install anyway. | 322 | /// it displays a dialog box informing the user and asking whether to try to install anyway. |
diff --git a/src/test/burn/WixTestTools/TestTool.cs b/src/test/burn/WixTestTools/TestTool.cs index eb77c75b..79e7004c 100644 --- a/src/test/burn/WixTestTools/TestTool.cs +++ b/src/test/burn/WixTestTools/TestTool.cs | |||
@@ -229,7 +229,7 @@ namespace WixTestTools | |||
229 | returnValue.AppendLine("Tool run result:"); | 229 | returnValue.AppendLine("Tool run result:"); |
230 | returnValue.AppendLine("----------------"); | 230 | returnValue.AppendLine("----------------"); |
231 | returnValue.AppendLine("Command:"); | 231 | returnValue.AppendLine("Command:"); |
232 | returnValue.AppendLine($"\"{result.StartInfo.FileName}\" {result.StartInfo.Arguments}"); | 232 | returnValue.AppendLine($"\"{result.FileName}\" {result.Arguments}"); |
233 | returnValue.AppendLine(); | 233 | returnValue.AppendLine(); |
234 | returnValue.AppendLine("Standard Output:"); | 234 | returnValue.AppendLine("Standard Output:"); |
235 | foreach (var line in result.StandardOutput ?? new string[0]) | 235 | foreach (var line in result.StandardOutput ?? new string[0]) |