Remove unused variable
This commit is contained in:
parent
c52d95a37b
commit
dd40de8159
|
@ -66,7 +66,6 @@ stop_server() {
|
||||||
|
|
||||||
startedSimulator=false
|
startedSimulator=false
|
||||||
log_temp=
|
log_temp=
|
||||||
test_temp_dir=
|
|
||||||
cleanup() {
|
cleanup() {
|
||||||
# Kill started object server
|
# Kill started object server
|
||||||
stop_server || true
|
stop_server || true
|
||||||
|
@ -88,9 +87,6 @@ cleanup() {
|
||||||
if [ -n "$log_temp" ] && [ -e "$log_temp" ]; then
|
if [ -n "$log_temp" ] && [ -e "$log_temp" ]; then
|
||||||
rm "$log_temp" || true
|
rm "$log_temp" || true
|
||||||
fi
|
fi
|
||||||
if [ -n "$test_temp_dir" ] && [ -e "$test_temp_dir" ]; then
|
|
||||||
rm -rf "$test_temp_dir" || true
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
open_chrome() {
|
open_chrome() {
|
||||||
|
@ -366,10 +362,6 @@ case "$TARGET" in
|
||||||
npm install --build-from-source=realm
|
npm install --build-from-source=realm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Change to a temp directory.
|
|
||||||
cd "$(mktemp -q -d -t realm.node.XXXXXX)"
|
|
||||||
test_temp_dir=$PWD # set it to be cleaned at exit
|
|
||||||
|
|
||||||
pushd "$SRCROOT/tests"
|
pushd "$SRCROOT/tests"
|
||||||
npm install
|
npm install
|
||||||
eval "$npm_tests_cmd"
|
eval "$npm_tests_cmd"
|
||||||
|
@ -382,9 +374,6 @@ case "$TARGET" in
|
||||||
start_server
|
start_server
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Change to a temp directory - because this is what is done for node - but we pushd right after?
|
|
||||||
cd "$(mktemp -q -d -t realm.electron.XXXXXX)"
|
|
||||||
test_temp_dir=$PWD # set it to be cleaned at exit
|
|
||||||
pushd "$SRCROOT/tests/electron"
|
pushd "$SRCROOT/tests/electron"
|
||||||
|
|
||||||
if [ "$(uname)" = 'Darwin' ]; then
|
if [ "$(uname)" = 'Darwin' ]; then
|
||||||
|
|
Loading…
Reference in New Issue