Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored python function to create command line arguments #342

Merged
merged 1 commit into from Apr 27, 2016
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Refactored python function to create command line arguments

  • Loading branch information
ashrwin committed Apr 27, 2016
commit 04a0052f5fe559f0e484b1ef49fe404a830e7cf0
@@ -115,19 +115,18 @@ def make_step(self, command):
])


def make_cd_string(command):
return "cd /c/buildbot/slave/windows/build ; " + command
def make_win_command(command):
cd_command = "cd /c/buildbot/slave/windows/build; " + command
return ["bash", "-l", "-c", cd_command]


windows = ServoFactory([
# TODO: convert this to use DynamicServoFactory
# We need to run each command in a bash login shell, which breaks the
# heuristics used by DynamicServoFactory.make_step
steps.Compile(command=["bash", "-l", "-c",
make_cd_string("./mach build -d -v")],
steps.Compile(command=make_win_command("./mach build -d -v"),
env=envs.build_windows),
steps.Compile(command=["bash", "-l", "-c",
make_cd_string("./mach test-unit")],
steps.Compile(command=make_win_command("./mach test-unit"),
env=envs.build_windows),
# TODO: run lockfile_changed.sh and manifest_changed.sh scripts
])
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.