storm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject [1/3] storm git commit: Adding test-ns.py
Date Wed, 11 Mar 2015 23:22:16 GMT
Repository: storm
Updated Branches:
  refs/heads/master a05ba34c8 -> ec13a14f3


Adding test-ns.py


Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/b7bfdde8
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/b7bfdde8
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/b7bfdde8

Branch: refs/heads/master
Commit: b7bfdde8714c39e7556ac34915817dd2a8879356
Parents: 182a734
Author: Kyle Nusbaum <knusbaum@yahoo-inc.com>
Authored: Fri Feb 27 12:51:04 2015 -0600
Committer: Kyle Nusbaum <knusbaum@yahoo-inc.com>
Committed: Fri Feb 27 12:51:04 2015 -0600

----------------------------------------------------------------------
 dev-tools/test-ns.py | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/storm/blob/b7bfdde8/dev-tools/test-ns.py
----------------------------------------------------------------------
diff --git a/dev-tools/test-ns.py b/dev-tools/test-ns.py
new file mode 100755
index 0000000..206fd6c
--- /dev/null
+++ b/dev-tools/test-ns.py
@@ -0,0 +1,17 @@
+#!/usr/bin/env python
+
+from subprocess import Popen, PIPE
+import sys
+import os
+
+os.chdir("storm-core")
+
+ns = sys.argv[1]
+pipe = Popen(["mvn", "clojure:repl"], stdin=PIPE)
+
+pipe.stdin.write("(do (use 'clojure.test) (require '%s :reload-all) (run-tests '%s))\n" %
(ns, ns))
+pipe.stdin.write("\n")
+pipe.stdin.close()
+pipe.wait()
+
+os.chdir("..")


Mime
View raw message