You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@predictionio.apache.org by do...@apache.org on 2016/08/09 21:43:34 UTC

[26/52] [abbrv] incubator-predictionio git commit: Added globals.py file

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\u0144ski <zi...@gmail.com>
Authored: Fri Jul 29 09:46:53 2016 -0700
Committer: Marcin Ziemi\u0144ski <zi...@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