Repository: ambari Updated Branches: refs/heads/trunk 2ca95b32b -> c7157e00f
AMBARI-10548. Unit tests failing in b.a.o (enabling few more tests on mac for dev testing) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/c7157e00 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c7157e00 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c7157e00 Branch: refs/heads/trunk Commit: c7157e00feff0eb0cc5ccb308cfce54e2950c82f Parents: 2ca95b3 Author: Sumit Mohanty <[email protected]> Authored: Thu Apr 16 15:23:02 2015 -0700 Committer: Sumit Mohanty <[email protected]> Committed: Thu Apr 16 15:23:02 2015 -0700 ---------------------------------------------------------------------- ambari-agent/src/test/python/ambari_agent/TestHostCleanup.py | 4 ++-- ambari-agent/src/test/python/ambari_agent/TestProcessHelper.py | 5 +++-- ambari-agent/src/test/python/ambari_agent/TestShell.py | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/c7157e00/ambari-agent/src/test/python/ambari_agent/TestHostCleanup.py ---------------------------------------------------------------------- diff --git a/ambari-agent/src/test/python/ambari_agent/TestHostCleanup.py b/ambari-agent/src/test/python/ambari_agent/TestHostCleanup.py index 734db5d..78cf4c2 100644 --- a/ambari-agent/src/test/python/ambari_agent/TestHostCleanup.py +++ b/ambari-agent/src/test/python/ambari_agent/TestHostCleanup.py @@ -67,9 +67,9 @@ pkg_list = sqoop.noarch,hadoop-libhdfs.x86_64,rrdtool.x86_64,ganglia-gmond.x86_6 [metadata] created = 2013-07-02 20:39:22.162757""" -from only_for_platform import only_for_platform, PLATFORM_LINUX +from only_for_platform import only_for_platform, not_for_platform, PLATFORM_WINDOWS, PLATFORM_LINUX -@only_for_platform(PLATFORM_LINUX) +@not_for_platform(PLATFORM_WINDOWS) class TestHostCleanup(TestCase): def setUp(self): http://git-wip-us.apache.org/repos/asf/ambari/blob/c7157e00/ambari-agent/src/test/python/ambari_agent/TestProcessHelper.py ---------------------------------------------------------------------- diff --git a/ambari-agent/src/test/python/ambari_agent/TestProcessHelper.py b/ambari-agent/src/test/python/ambari_agent/TestProcessHelper.py index b0b828d..f30d45d 100644 --- a/ambari-agent/src/test/python/ambari_agent/TestProcessHelper.py +++ b/ambari-agent/src/test/python/ambari_agent/TestProcessHelper.py @@ -25,8 +25,9 @@ import unittest from mock.mock import patch, MagicMock from ambari_agent import ProcessHelper -from only_for_platform import only_for_platform, PLATFORM_LINUX -@only_for_platform(PLATFORM_LINUX) +from only_for_platform import not_for_platform, PLATFORM_WINDOWS + +@not_for_platform(PLATFORM_WINDOWS) class TestProcessHelper(unittest.TestCase): @patch.object(ProcessHelper, "getTempFiles") http://git-wip-us.apache.org/repos/asf/ambari/blob/c7157e00/ambari-agent/src/test/python/ambari_agent/TestShell.py ---------------------------------------------------------------------- diff --git a/ambari-agent/src/test/python/ambari_agent/TestShell.py b/ambari-agent/src/test/python/ambari_agent/TestShell.py index 797e1b7..d185755 100644 --- a/ambari-agent/src/test/python/ambari_agent/TestShell.py +++ b/ambari-agent/src/test/python/ambari_agent/TestShell.py @@ -27,10 +27,10 @@ from ambari_agent.AmbariConfig import AmbariConfig from ambari_commons import shell from ambari_commons.shell import shellRunner from sys import platform as _platform -from only_for_platform import only_for_platform, PLATFORM_LINUX +from only_for_platform import not_for_platform, PLATFORM_WINDOWS import subprocess, time -@only_for_platform(PLATFORM_LINUX) +@not_for_platform(PLATFORM_WINDOWS) class TestShell(unittest.TestCase):
