aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-distribution-ci/src/main
diff options
context:
space:
mode:
authorPavel Aharoni <pa0916@att.com>2017-05-11 19:51:35 +0300
committerPavel Aharoni <pa0916@att.com>2017-05-11 19:51:35 +0300
commit3940304759ebd74d05c129501aa5f92e5e938033 (patch)
treeae559b8f40d2efcbe47089a728524a1725cc5586 /sdc-distribution-ci/src/main
parent8caef088a9e5467cd0cb462acb217edceedac8fe (diff)
[SDC-20] fix sdc csar for tosca parser
Change-Id: Ibfa18bd03cf1d4dc56062fbe1a55331217c6c76f Signed-off-by: Pavel Aharoni <pa0916@att.com>
Diffstat (limited to 'sdc-distribution-ci/src/main')
-rw-r--r--sdc-distribution-ci/src/main/java/org/openecomp/test/CsarToscaTester.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sdc-distribution-ci/src/main/java/org/openecomp/test/CsarToscaTester.java b/sdc-distribution-ci/src/main/java/org/openecomp/test/CsarToscaTester.java
index 0ac842c..404f6d2 100644
--- a/sdc-distribution-ci/src/main/java/org/openecomp/test/CsarToscaTester.java
+++ b/sdc-distribution-ci/src/main/java/org/openecomp/test/CsarToscaTester.java
@@ -48,14 +48,14 @@ public class CsarToscaTester {
if (!exceptionReport.isEmpty()) {
try {
- fw = new FileWriter(new File(dir + "/critical-" + file.getName() + ".txt"));
+ fw = new FileWriter(new File(dir + "/" + exceptionReport.size() / 2 + "-critical-" + file.getName() + ".txt"));
for (String exception : exceptionReport) {
fw.write(exception);
fw.write("\r\n");
}
fw.close();
- fw = new FileWriter(new File(dir + "/warning-" + file.getName() + ".txt"));
+ fw = new FileWriter(new File(dir + "/" + warningsReport.size() / 2 + "-warning-" + file.getName() + ".txt"));
for (String warning : warningsReport) {
fw.write(warning);
fw.write("\r\n");