predictionio-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From don...@apache.org
Subject [26/52] [abbrv] incubator-predictionio git commit: Added globals.py file
Date Tue, 09 Aug 2016 21:43:34 GMT
Added globals.py file


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

Branch: refs/heads/develop
Commit: a05fcd38e0c14a635dcf4c36c60b0c311f063c9d
Parents: 39e8768
Author: Marcin Ziemiński <zieminm@gmail.com>
Authored: Fri Jul 29 09:46:53 2016 -0700
Committer: Marcin Ziemiński <zieminm@gmail.com>
Committed: Wed Aug 3 14:41:18 2016 -0700

----------------------------------------------------------------------
 globals.py | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/a05fcd38/globals.py
----------------------------------------------------------------------
diff --git a/globals.py b/globals.py
new file mode 100644
index 0000000..6d4abd3
--- /dev/null
+++ b/globals.py
@@ -0,0 +1,17 @@
+import subprocess
+
+SUPPRESS_STDOUT=False
+SUPPRESS_STDERR=False
+LOGGER_NAME='INT_TESTS'
+
+def std_out():
+    if SUPPRESS_STDOUT:
+        return subprocess.DEVNULL
+    else:
+        return None
+
+def std_err():
+    if SUPPRESS_STDERR:
+        return subprocess.DEVNULL
+    else:
+        return None


Mime
View raw message