Skip to content

Commit

Permalink
fix(bazel): unable to launch protractor test on windows (#27850)
Browse files Browse the repository at this point in the history
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 Jan 3, 2019
1 parent 5aecb2d commit 7e98eed
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/bazel/src/protractor/protractor_web_test.bzl
Expand Up @@ -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}
Expand Down

0 comments on commit 7e98eed

Please sign in to comment.