@deeeed/metamask-harness 0.26.3 → 0.26.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/adapters/mobile/verify.sh +9 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -321,7 +321,7 @@ JSON
|
|
|
321
321
|
cd "$TARGET"
|
|
322
322
|
device_args=()
|
|
323
323
|
[ -n "$device_target" ] && device_args=(--device "$device_target")
|
|
324
|
-
"$RUNNER_BIN" run "$ARTIFACTS/mobile-status-smoke.recipe.json" --adapter mobile --target "$TARGET" "${device_args[@]}" --artifacts-dir "$ARTIFACTS/runner-status-smoke" --json
|
|
324
|
+
"$RUNNER_BIN" run "$ARTIFACTS/mobile-status-smoke.recipe.json" --adapter mobile --target "$TARGET" "${device_args[@]}" --watcher-port "$port" --artifacts-dir "$ARTIFACTS/runner-status-smoke" --json
|
|
325
325
|
) > "$log_path" 2>&1
|
|
326
326
|
}
|
|
327
327
|
|
|
@@ -351,6 +351,13 @@ EOF
|
|
|
351
351
|
}
|
|
352
352
|
|
|
353
353
|
if [ "$STATIC_ONLY" = false ]; then
|
|
354
|
+
port="$(watcher_port)"
|
|
355
|
+
# Reject a non-numeric port before it reaches runner arguments or the
|
|
356
|
+
# port-holder shell probe.
|
|
357
|
+
case "$port" in
|
|
358
|
+
""|*[!0-9]*) echo "Refusing mobile verify: resolved watcher port is not numeric: '$port' (check WATCHER_PORT)" >&2; exit 2 ;;
|
|
359
|
+
esac
|
|
360
|
+
|
|
354
361
|
device_target="$(mobile_device_target)"
|
|
355
362
|
if [ -z "$device_target" ]; then
|
|
356
363
|
if [ "$PLATFORM" = "android" ]; then
|
|
@@ -376,13 +383,6 @@ if [ "$STATIC_ONLY" = false ]; then
|
|
|
376
383
|
add_note "$fixture_message"
|
|
377
384
|
checks+=("$fixture_check_json")
|
|
378
385
|
|
|
379
|
-
port="$(watcher_port)"
|
|
380
|
-
# Reject a non-numeric port before it is interpolated into a shell command
|
|
381
|
-
# (port_holder_json runs `lsof -iTCP:${port}`). The .env path is regex-guarded,
|
|
382
|
-
# but the WATCHER_PORT env path is not, so validate here.
|
|
383
|
-
case "$port" in
|
|
384
|
-
""|*[!0-9]*) echo "Refusing mobile verify: resolved watcher port is not numeric: '$port' (check WATCHER_PORT)" >&2; exit 2 ;;
|
|
385
|
-
esac
|
|
386
386
|
port_holder_json "$port" > "$ARTIFACTS/logs/port-holder.json"
|
|
387
387
|
|
|
388
388
|
cat > "$ARTIFACTS/mobile-v1-live-smoke.recipe.json" <<'JSON'
|
|
@@ -411,7 +411,7 @@ JSON
|
|
|
411
411
|
IOS_SIMULATOR="${IOS_SIMULATOR:-$ios_simulator_resolved}" \
|
|
412
412
|
ADB_SERIAL="${ADB_SERIAL:-$adb_serial_resolved}" \
|
|
413
413
|
ANDROID_SERIAL="${ANDROID_SERIAL:-$adb_serial_resolved}" \
|
|
414
|
-
"$RUNNER_BIN" run "$ARTIFACTS/mobile-v1-live-smoke.recipe.json" --adapter mobile --target "$TARGET" "${device_args[@]}" --artifacts-dir "$ARTIFACTS/runner-live-smoke" --json
|
|
414
|
+
"$RUNNER_BIN" run "$ARTIFACTS/mobile-v1-live-smoke.recipe.json" --adapter mobile --target "$TARGET" "${device_args[@]}" --watcher-port "$port" --artifacts-dir "$ARTIFACTS/runner-live-smoke" --json
|
|
415
415
|
) > "$ARTIFACTS/logs/runner-live-smoke.log" 2>&1; then
|
|
416
416
|
checks+=("{\"name\":\"runner v1 live bridge smoke\",\"status\":\"pass\"}")
|
|
417
417
|
else
|