def test_determine_path_non_eg2(self, mock_abspath): mock_abspath.return_value = '/b/s/w/ir/ios/build/bots/scripts/share_util.py' app = 'some_ios_test.app' actual_path = shard_util.determine_app_path(app) expected_path = os.path.join('/b/s/w/ir', 'out/Debug', app, 'some_ios_test') self.assertEqual(actual_path, expected_path)
def test_determine_path_eg2_release(self, mock_abspath): mock_abspath.return_value = '/b/s/w/ir/ios/build/bots/scripts/share_util.py' app = 'some_ios_test-Runner.app' host = 'some_host.app' actual_path = shard_util.determine_app_path(app, host, True) expected_path = os.path.join('/b/s/w/ir', 'out/Release', app, 'PlugIns', 'some_ios_test.xctest', 'some_ios_test') self.assertEqual(actual_path, expected_path)