fix(shorebird_cli): "SYS_KEYS has no physical keys" during preview (#2646)
Co-authored-by: Felix Angelov <felix@shorebird.dev>
This commit is contained in:
@@ -96,6 +96,7 @@ words:
|
||||
- SIGSTOP
|
||||
- storepass # From .github/workflows/e2e.yaml
|
||||
- storyboardc
|
||||
- syskeys # From adb.dart
|
||||
- subosito # From .github dir, doesn't show up in "**" check?
|
||||
- swiftshader # From .github dir, doesn't show up in "**" check?
|
||||
- sysroot
|
||||
|
||||
@@ -51,6 +51,9 @@ class Adb {
|
||||
if (deviceId != null) ...['-s', deviceId],
|
||||
'shell',
|
||||
'monkey',
|
||||
// Adjust percentage of "system" key events to 0.
|
||||
// This is needed to support Android systems with no hardware keys.
|
||||
'--pct-syskeys 0',
|
||||
'-p $package',
|
||||
'1',
|
||||
];
|
||||
|
||||
@@ -157,7 +157,10 @@ void main() {
|
||||
completes,
|
||||
);
|
||||
verify(
|
||||
() => process.run(adbPath, 'shell monkey -p $package 1'.split(' ')),
|
||||
() => process.run(
|
||||
adbPath,
|
||||
'shell monkey --pct-syskeys 0 -p $package 1'.split(' '),
|
||||
),
|
||||
).called(1);
|
||||
});
|
||||
|
||||
@@ -172,7 +175,8 @@ void main() {
|
||||
verify(
|
||||
() => process.run(
|
||||
adbPath,
|
||||
'-s $deviceId shell monkey -p $package 1'.split(' '),
|
||||
'-s $deviceId shell monkey --pct-syskeys 0 -p $package 1'
|
||||
.split(' '),
|
||||
),
|
||||
).called(1);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user