Skip to content
Permalink
Browse files

Move `mkdir` call out of `with_curl_script`

  • Loading branch information
SimonSapin committed Nov 21, 2019
1 parent 83921db commit b96a36c1316111754de699698b9af9a3fac89509
Showing with 7 additions and 3 deletions.
  1. +7 −2 etc/taskcluster/decision_task.py
  2. +0 −1 etc/taskcluster/decisionlib.py
@@ -378,7 +378,7 @@ def android_x86_release():

def android_x86_wpt():
build_task = android_x86_release()
return (
task = (
linux_task("WPT")
.with_treeherder("Android x86")
.with_provisioner_id("proj-servo")
@@ -387,7 +387,12 @@ def android_x86_wpt():
.with_scopes("project:servo:docker-worker-kvm:capability:privileged")
.with_dockerfile(dockerfile_path("run-android-emulator"))
.with_repo()
.with_curl_artifact_script(build_task, "servoapp.apk", "target/android/i686-linux-android/release")
)
apk_dir = "target/android/i686-linux-android/release"
return (
task
.with_script("mkdir -p " + apk_dir)
.with_curl_artifact_script(build_task, "servoapp.apk", apk_dir)
.with_script("""
./mach bootstrap-android --accept-all-licences --emulator-x86
./mach test-android-startup --release
@@ -629,7 +629,6 @@ def with_curl_script(self, url, file_path):
"CURL_%s_PATH" % n: file_path,
}) \
.with_script("""
mkdir -p $(dirname "$CURL_{n}_PATH")
curl --retry 5 --connect-timeout 10 -Lf "$CURL_{n}_URL" -o "$CURL_{n}_PATH"
""".format(n=n))

0 comments on commit b96a36c

Please sign in to comment.
You can’t perform that action at this time.