Skip to content

Commit

Permalink
[xharness] Don't try to write cleaned xml into the same file as the d…
Browse files Browse the repository at this point in the history
…irty xml was. (#9122)
  • Loading branch information
rolfbjarne authored and mandel-macaque committed Aug 21, 2020
1 parent a498449 commit 1faa744
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ public async Task CollectDeviceResult (Task<ProcessExecutionResult> processExecu
// from the TCP connection, we are going to fail when trying to read it and not parse it. Therefore, we are not only
// going to check if we are in CI, but also if the listener_log is valid.
var path = Path.ChangeExtension (test_log_path, "xml");
if (path == test_log_path)
path = Path.Combine (Path.GetDirectoryName (path), Path.GetFileNameWithoutExtension (path) + "-clean.xml");
resultParser.CleanXml (test_log_path, path);

if (ResultsUseXml && resultParser.IsValidXml (path, out var xmlType)) {
Expand Down

0 comments on commit 1faa744

Please sign in to comment.