From: Alex Jia <[email protected]>

Running scan_results.py to get test result in autotest root
directory instead of multi-layers subdirectory, it will be
more friendly and convenient for users.  

Signed-off-by: Alex Jia <[email protected]>
---
 client/tools/scan_results.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/client/tools/scan_results.py b/client/tools/scan_results.py
index 71dddde..867c947 100755
--- a/client/tools/scan_results.py
+++ b/client/tools/scan_results.py
@@ -90,9 +90,11 @@ def main(resfiles):
 
 
 if __name__ == "__main__":
-    import sys, glob
+    import os, sys, glob
+  
+    curr_path = os.getcwd()
+    resfiles = glob.glob("%s/client/results/default/status*" %curr_path)
 
-    resfiles = glob.glob("../../results/default/status*")
     if len(sys.argv) > 1:
         if sys.argv[1] == "-h" or sys.argv[1] == "--help":
             print "Usage: %s [result files]" % sys.argv[0]
-- 
1.7.1

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to