test(mobile): report linked signer probe failures explicitly

Signed-off-by: Tom Brow <tomb@block.xyz>
This commit is contained in:
Tom Brow
2026-10-18 18:44:21 -07:00
parent 8e60b7608c
commit 05ceb11e1b
2 changed files with 13 additions and 0 deletions

View File

@@ -8,6 +8,15 @@ import 'package:buzz/shared/crypto/event_signer.dart';
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
try {
await runProbe();
} catch (error) {
debugPrint('SIGNING_PROBE FAILED: $error');
rethrow;
}
}
Future<void> runProbe() async {
if (!Platform.isIOS) throw StateError('This probe requires an iOS Runner');
final results = <String>[];
final key = '0' * 63 + '3';

View File

@@ -24,6 +24,10 @@ for ((attempt = 0; attempt < 90; attempt++)); do
xcrun simctl spawn "$device" log show --last 5m --style compact \
--predicate "processIdentifier == $probe_pid AND eventMessage CONTAINS \"SIGNING_PROBE\"" \
> "$fixture/probe.log" 2>/dev/null
if grep -q 'SIGNING_PROBE FAILED:' "$fixture/probe.log"; then
cat "$fixture/probe.log"
exit 1
fi
if grep -q 'SIGNING_PROBE COMPLETE' "$fixture/probe.log"; then
cat "$fixture/probe.log"
exit 0