You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by dm...@apache.org on 2016/02/19 14:26:31 UTC

[14/21] ambari git commit: AMBARI-15090. [Ambari tarballs] ambari-server python scripts should support running from custom root (aonishuk)

AMBARI-15090. [Ambari tarballs] ambari-server python scripts should support running from custom root (aonishuk)


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

Branch: refs/heads/branch-dev-patch-upgrade
Commit: 6d121dd6e361b36a144134cd6f89c72e7cc17f27
Parents: 0818202
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Thu Feb 18 23:43:19 2016 +0200
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Thu Feb 18 23:43:41 2016 +0200

----------------------------------------------------------------------
 ambari-server/src/test/python/TestOSCheck.py | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/6d121dd6/ambari-server/src/test/python/TestOSCheck.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/TestOSCheck.py b/ambari-server/src/test/python/TestOSCheck.py
index d919fbc..2d9f737 100644
--- a/ambari-server/src/test/python/TestOSCheck.py
+++ b/ambari-server/src/test/python/TestOSCheck.py
@@ -38,6 +38,7 @@ utils = __import__('ambari_server.utils').utils
 with patch("platform.linux_distribution", return_value = os_distro_value_linux):
   with patch.object(OSCheck, "os_distribution", return_value = os_distro_value):
     with patch.object(utils, "get_postgre_hba_dir"):
+      os.environ["ROOT"] = ""
       ambari_server = __import__('ambari-server')
 
       from ambari_server.serverConfiguration import update_ambari_properties, configDefaults