kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject [3/8] incubator-kudu git commit: dist_test: fix detection of test result file
Date Mon, 11 Jan 2016 09:19:09 GMT
dist_test: fix detection of test result file

For tests which are named "foo.sh", the test results end up in "foo.txt", not
"foo.sh.txt". This adds the requisite extension-stripping.

Change-Id: If887f9b205b0ca455d6d9be643abeedc91797d11
Reviewed-on: http://gerrit.cloudera.org:8080/1744
Reviewed-by: Mike Percy <mpercy@cloudera.com>
Tested-by: Todd Lipcon <todd@cloudera.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kudu/commit/794aaca5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kudu/tree/794aaca5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kudu/diff/794aaca5

Branch: refs/heads/master
Commit: 794aaca58bbc7ebc1c8ddafb35a2249a1b128540
Parents: e6cbd21
Author: Todd Lipcon <todd@cloudera.com>
Authored: Thu Jan 7 15:25:57 2016 -0800
Committer: Todd Lipcon <todd@cloudera.com>
Committed: Fri Jan 8 03:11:05 2016 +0000

----------------------------------------------------------------------
 build-support/run_dist_test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kudu/blob/794aaca5/build-support/run_dist_test.py
----------------------------------------------------------------------
diff --git a/build-support/run_dist_test.py b/build-support/run_dist_test.py
index 85e41a7..db369ee 100755
--- a/build-support/run_dist_test.py
+++ b/build-support/run_dist_test.py
@@ -47,7 +47,7 @@ def main():
     p.print_help(sys.stderr)
     sys.exit(1)
   test_exe = args[0]
-  test_name = os.path.basename(test_exe)
+  test_name, _ = os.path.splitext(os.path.basename(test_exe))
 
   env = os.environ.copy()
   for env_pair in options.env:


Mime
View raw message