Output.Printers.OnePerBatch does not print empty auto-test protocols.

This commit is contained in:
Milan Hanajik
2020-04-22 17:54:44 +02:00
parent 663a74fbdb
commit 8cd3e7585c
2 changed files with 9 additions and 5 deletions
@@ -166,11 +166,15 @@ namespace TBF.BenchControl.Output.Printers.OnePerBatch
}
catch
{
documentName = string.Format("{0}-{1}", batch.BatchNr, wm.WMPosition);
documentName = string.Format("{0}", batch.BatchNr, wm.WMPosition);
}
PrintResults(batch, wm, documentName);
break;
/// The following condition prevents printing empty AutoTest results protocols
if (string.IsNullOrEmpty(printerCfg.AutoTestParam) || wm.AutoMeterTestRslts(printerCfg.AutoTestParam).Count > 0)
{
PrintResults(batch, wm, documentName);
break;
}
}
}