Skip to content

Commit

Permalink
Merge pull request #1 from keith/ks/change-imports
Browse files Browse the repository at this point in the history
Rewrite imports for local builds
  • Loading branch information
woshimaliang committed Dec 1, 2019
2 parents c0e3f27 + 7c50e5d commit 91c24df
Show file tree
Hide file tree
Showing 13 changed files with 53 additions and 53 deletions.
4 changes: 2 additions & 2 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")

git_repository(
name = "subpar",
remote = "https://github.com/google/subpar",
tag = "2.0.0",
remote = "https://github.com/woshimaliang/subpar",
tag = "2.0.0_Py2.7",
)
4 changes: 2 additions & 2 deletions shared/bundle_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
import subprocess
import tempfile

from xctestrunner.shared import ios_errors
from xctestrunner.shared import plist_util
from shared import ios_errors
from shared import plist_util


def ExtractApp(compressed_app_path, working_dir):
Expand Down
2 changes: 1 addition & 1 deletion shared/plist_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import subprocess
import xml.parsers.expat

from xctestrunner.shared import ios_errors
from shared import ios_errors
try:
import biplist
except ImportError:
Expand Down
4 changes: 2 additions & 2 deletions shared/provisioning_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import tempfile
import uuid

from xctestrunner.shared import ios_errors
from xctestrunner.shared import plist_util
from shared import ios_errors
from shared import plist_util


class ProvisiongProfile(object):
Expand Down
8 changes: 4 additions & 4 deletions simulator_control/simtype_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

import os

from xctestrunner.shared import ios_constants
from xctestrunner.shared import ios_errors
from xctestrunner.shared import plist_util
from xctestrunner.shared import xcode_info_util
from shared import ios_constants
from shared import ios_errors
from shared import plist_util
from shared import xcode_info_util


class SimTypeProfile(object):
Expand Down
10 changes: 5 additions & 5 deletions simulator_control/simulator_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
import subprocess
import time

from xctestrunner.shared import ios_constants
from xctestrunner.shared import ios_errors
from xctestrunner.shared import plist_util
from xctestrunner.shared import xcode_info_util
from xctestrunner.simulator_control import simtype_profile
from shared import ios_constants
from shared import ios_errors
from shared import plist_util
from shared import xcode_info_util
from simulator_control import simtype_profile

_SIMULATOR_STATES_MAPPING = {
0: ios_constants.SimState.CREATING,
Expand Down
14 changes: 7 additions & 7 deletions test_runner/dummy_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
import tempfile
import xml.etree.ElementTree as ET

from xctestrunner.shared import bundle_util
from xctestrunner.shared import ios_constants
from xctestrunner.shared import ios_errors
from xctestrunner.shared import plist_util
from xctestrunner.shared import provisioning_profile
from xctestrunner.shared import xcode_info_util
from xctestrunner.test_runner import xcodebuild_test_executor
from shared import bundle_util
from shared import ios_constants
from shared import ios_errors
from shared import plist_util
from shared import provisioning_profile
from shared import xcode_info_util
from test_runner import xcodebuild_test_executor


_DEFAULT_PERMS = 0o0777
Expand Down
12 changes: 6 additions & 6 deletions test_runner/ios_test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
import subprocess
import sys

from xctestrunner.shared import ios_constants
from xctestrunner.shared import ios_errors
from xctestrunner.shared import xcode_info_util
from xctestrunner.simulator_control import simulator_util
from xctestrunner.test_runner import runner_exit_codes
from xctestrunner.test_runner import xctest_session
from shared import ios_constants
from shared import ios_errors
from shared import xcode_info_util
from simulator_control import simulator_util
from test_runner import runner_exit_codes
from test_runner import xctest_session

_XCTESTRUN_HELP = (
"""The path of the xctestrun file.
Expand Down
6 changes: 3 additions & 3 deletions test_runner/logic_test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
import subprocess
import sys

from xctestrunner.shared import ios_constants
from xctestrunner.shared import xcode_info_util
from xctestrunner.test_runner import runner_exit_codes
from shared import ios_constants
from shared import xcode_info_util
from test_runner import runner_exit_codes

_SIMCTL_ENV_VAR_PREFIX = 'SIMCTL_CHILD_'

Expand Down
2 changes: 1 addition & 1 deletion test_runner/test_summaries_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import shutil
import tempfile

from xctestrunner.shared import plist_util
from shared import plist_util


def GetTestSummariesPaths(derived_data_dir):
Expand Down
10 changes: 5 additions & 5 deletions test_runner/xcodebuild_test_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
import threading
import time

from xctestrunner.shared import ios_constants
from xctestrunner.shared import ios_errors
from xctestrunner.shared import xcode_info_util
from xctestrunner.simulator_control import simulator_util
from xctestrunner.test_runner import runner_exit_codes
from shared import ios_constants
from shared import ios_errors
from shared import xcode_info_util
from simulator_control import simulator_util
from test_runner import runner_exit_codes


_XCODEBUILD_TEST_STARTUP_TIMEOUT_SEC = 150
Expand Down
18 changes: 9 additions & 9 deletions test_runner/xctest_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
import subprocess
import tempfile

from xctestrunner.shared import bundle_util
from xctestrunner.shared import ios_constants
from xctestrunner.shared import ios_errors
from xctestrunner.shared import xcode_info_util
from xctestrunner.test_runner import dummy_project
from xctestrunner.test_runner import logic_test_util
from xctestrunner.test_runner import runner_exit_codes
from xctestrunner.test_runner import test_summaries_util
from xctestrunner.test_runner import xctestrun
from shared import bundle_util
from shared import ios_constants
from shared import ios_errors
from shared import xcode_info_util
from test_runner import dummy_project
from test_runner import logic_test_util
from test_runner import runner_exit_codes
from test_runner import test_summaries_util
from test_runner import xctestrun


class XctestSession(object):
Expand Down
12 changes: 6 additions & 6 deletions test_runner/xctestrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
import shutil
import tempfile

from xctestrunner.shared import bundle_util
from xctestrunner.shared import ios_constants
from xctestrunner.shared import ios_errors
from xctestrunner.shared import plist_util
from xctestrunner.shared import xcode_info_util
from xctestrunner.test_runner import xcodebuild_test_executor
from shared import bundle_util
from shared import ios_constants
from shared import ios_errors
from shared import plist_util
from shared import xcode_info_util
from test_runner import xcodebuild_test_executor


TESTROOT_RELATIVE_PATH = '__TESTROOT__'
Expand Down

0 comments on commit 91c24df

Please sign in to comment.