mirror of
https://github.com/block/buzz.git
synced 2026-10-27 20:41:57 +00:00
test(mobile): report linked signer probe failures explicitly
Signed-off-by: Tom Brow <tomb@block.xyz>
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user