[VOL-3007] Reports execution time as a sum of the previous tests for correct plotting

Change-Id: I65d41fc58818eb013b9349f75a650a0314baece9
diff --git a/.gitignore b/.gitignore
index 7baae54..8c461ee 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,6 @@
 
 # IDEs
 .idea
+
+# other outputs
+tests/scale/plots
diff --git a/tests/scale/collect-result.py b/tests/scale/collect-result.py
index f65ae31..1e15ab1 100644
--- a/tests/scale/collect-result.py
+++ b/tests/scale/collect-result.py
@@ -36,6 +36,8 @@
 
     results = {}
 
+
+    startTimer = 0
     print(double_dash)
     print("{:<50}{:>10}{:>15}".format("Test Name", "Status", "Duration (s)"))
     print(double_dash)
@@ -47,14 +49,16 @@
         s = datetime.strptime(start[:-4], "%Y%m%d %H:%M:%S")
         e = datetime.strptime(end[:-4], "%Y%m%d %H:%M:%S")
         diff = e - s
-        print("{:<50}{:>10}{:>15}".format(cut_string(name), status.attrib["status"], diff.seconds))
+        time = startTimer + diff.seconds
+        print("{:<50}{:>10}{:>15}".format(cut_string(name), status.attrib["status"], time))
         print(dash)
 
         # check if the test has a tag that starts with "plot-",
         # if so store the result to create plot files for Jenkins
         for tag in test.findall("./tags/tag"):
             if "plot-" in tag.text:
-                results[tag.text] = diff.seconds
+                results[tag.text] = time
+        startTimer = time
 
     if not os.path.isdir(plot_folder):
         os.mkdir(plot_folder)