Skip to content
Permalink
Browse files

fix(bazel): unable to launch protractor test on windows (#27850)

Due to an incorrect environment variable name, it's currently not possible to launch Protractor on Windows using the Bazel protractor rule.

PR Close #27850
  • Loading branch information...
devversion authored and benlesh committed Dec 27, 2018
1 parent a979001 commit 1e6c9be86c42ec9662757f533d16045c1485484a
Showing with 5 additions and 2 deletions.
  1. +5 −2 packages/bazel/src/protractor/protractor_web_test.bzl
@@ -77,15 +77,18 @@ def _protractor_web_test_impl(ctx):
output = ctx.outputs.executable,
is_executable = True,
content = """#!/usr/bin/env bash
if [ -e "$RUNFILE_MANIFEST_FILE" ]; then
# Immediately exit if any command fails.
set -e
if [ -e "$RUNFILES_MANIFEST_FILE" ]; then
while read line; do
declare -a PARTS=($line)
if [ "${{PARTS[0]}}" == "{TMPL_protractor}" ]; then
readonly PROTRACTOR=${{PARTS[1]}}
elif [ "${{PARTS[0]}}" == "{TMPL_conf}" ]; then
readonly CONF=${{PARTS[1]}}
fi
done < $RUNFILE_MANIFEST_FILE
done < $RUNFILES_MANIFEST_FILE
else
readonly PROTRACTOR=../{TMPL_protractor}
readonly CONF=../{TMPL_conf}

0 comments on commit 1e6c9be

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.