From: Zack Cerza Date: Wed, 16 May 2018 21:00:07 +0000 (-0600) Subject: suite/test/test_run_.py: Don't hit the network! X-Git-Tag: 1.1.0~341^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=598bdef7836a7e990d8866d166b22dfeb988d307;p=teuthology.git suite/test/test_run_.py: Don't hit the network! Signed-off-by: Zack Cerza --- diff --git a/teuthology/suite/test/test_run_.py b/teuthology/suite/test/test_run_.py index 86cc4d5d5f..363781e236 100644 --- a/teuthology/suite/test/test_run_.py +++ b/teuthology/suite/test/test_run_.py @@ -204,8 +204,10 @@ class TestScheduleSuite(object): @patch('teuthology.suite.util.git_ls_remote') @patch('teuthology.suite.util.package_version_for_hash') @patch('teuthology.suite.util.git_validate_sha1') + @patch('teuthology.suite.util.get_arch') def test_successful_schedule( self, + m_get_arch, m_git_validate_sha1, m_package_version_for_hash, m_git_ls_remote, @@ -216,6 +218,7 @@ class TestScheduleSuite(object): m_has_packages_for_distro, m_schedule_jobs, ): + m_get_arch.return_value = 'x86_64' m_git_validate_sha1.return_value = self.args.ceph_sha1 m_package_version_for_hash.return_value = 'ceph_version' m_git_ls_remote.return_value = 'suite_hash' @@ -274,8 +277,10 @@ class TestScheduleSuite(object): @patch('teuthology.suite.util.git_ls_remote') @patch('teuthology.suite.util.package_version_for_hash') @patch('teuthology.suite.util.git_validate_sha1') + @patch('teuthology.suite.util.get_arch') def test_newest_failure( self, + m_get_arch, m_git_validate_sha1, m_package_version_for_hash, m_git_ls_remote, @@ -287,6 +292,7 @@ class TestScheduleSuite(object): m_schedule_jobs, m_find_git_parent, ): + m_get_arch.return_value = 'x86_64' m_git_validate_sha1.return_value = self.args.ceph_sha1 m_package_version_for_hash.return_value = 'ceph_version' m_git_ls_remote.return_value = 'suite_hash' @@ -325,8 +331,10 @@ class TestScheduleSuite(object): @patch('teuthology.suite.util.git_ls_remote') @patch('teuthology.suite.util.package_version_for_hash') @patch('teuthology.suite.util.git_validate_sha1') + @patch('teuthology.suite.util.get_arch') def test_newest_success( self, + m_get_arch, m_git_validate_sha1, m_package_version_for_hash, m_git_ls_remote, @@ -338,6 +346,7 @@ class TestScheduleSuite(object): m_schedule_jobs, m_find_git_parent, ): + m_get_arch.return_value = 'x86_64' # rig has_packages_for_distro to fail this many times, so # everything will run NUM_FAILS+1 times NUM_FAILS = 5