Repository: ambari
Updated Branches:
  refs/heads/trunk 710a8fea4 -> 46176c9aa


AMBARI-15690. Ambari server python tests broken (aonishuk)


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

Branch: refs/heads/trunk
Commit: 46176c9aa1da601a73c48940b352c3bef9977499
Parents: 710a8fe
Author: Andrew Onishuk <[email protected]>
Authored: Tue Apr 5 15:00:05 2016 +0300
Committer: Andrew Onishuk <[email protected]>
Committed: Tue Apr 5 15:00:20 2016 +0300

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/46176c9a/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 aad8871..9aba78b 100644
--- a/ambari-server/src/test/python/TestOSCheck.py
+++ b/ambari-server/src/test/python/TestOSCheck.py
@@ -35,6 +35,10 @@ from ambari_commons import os_utils
 from ambari_commons import OSCheck, OSConst
 import os_check_type
 
+import shutil
+project_dir = 
os.path.join(os.path.abspath(os.path.dirname(__file__)),os.path.normpath("../../../../"))
+shutil.copyfile(project_dir+"/ambari-server/conf/unix/ambari.properties", 
"/tmp/ambari.properties")
+
 _search_file = os_utils.search_file
 os_utils.search_file = MagicMock(return_value="/tmp/ambari.properties")
 utils = __import__('ambari_server.utils').utils

Reply via email to