aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPunit Agrawal <punit.agrawal@arm.com>2015-06-02 11:18:38 +0100
committerJavi Merino <javi.merino@arm.com>2015-08-13 18:59:51 +0100
commit8fcb7d16aded5b2b2d1a1fa939d0d98286230cd6 (patch)
tree38ef85a18ad7369b8e37962c694da182594474b5 /tests
parent9d9c9b802d01616175b54cc162d84b869f5f2363 (diff)
downloadtrappy-8fcb7d16aded5b2b2d1a1fa939d0d98286230cd6.tar.gz
results: Accept direct paths to file
Accept path to results.csv file in addition to folder containing the results.csv. The primary motivation is to be able to show combination of multiple results from the test folder but it might prove useful for others as well. Change-Id: Iaad3efec967d65b26e55e868cb4e8eb80274d198 Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_results.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_results.py b/tests/test_results.py
index 7e6c233..a7d70f3 100644
--- a/tests/test_results.py
+++ b/tests/test_results.py
@@ -53,6 +53,17 @@ class TestResults(utils_tests.SetupDirectory):
self.assertEquals(len(results_frame.columns), 10)
+ def test_get_results_filename(self):
+ """results.get_results() can be given a specific filename"""
+
+ old_path = os.path.join(self.out_dir, "results.csv")
+ new_path = os.path.join(self.out_dir, "new_results.csv")
+ os.rename(old_path, new_path)
+
+ results_frame = results.get_results(new_path)
+
+ self.assertEquals(len(results_frame.columns), 10)
+
def test_get_results_id(self):
"""get_results() optional id argument overrides the one in the results file"""
res = results.get_results(id="malkovich")