-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Description
Tried setting up React-Native-Owl on React-Native Project to capture screenshots on Android. It doesn't work!
Setup
- Setup owl.config.json as per the documentation.
{
"android": {
"packageName": "com.loki",
"quiet": true
},
"debug": true,
"report": true
}
- npm run owl build -- --platform android - Works fine ✅
- npm run owl test -- --platform android - Fails ❌
Error
> loki@0.0.1 owl /Users/nikhilmittal/Desktop/Github/loki
> ./node_modules/react-native-owl/dist/cli/index.js "test" "--platform" "android"
[OWL] Starting websocket server.
[OWL] Running tests on android.
[OWL] WebSocket now listening on port 8123.
Sat Jan 1 09:41:00 IST 2022
date: cannot set date: Operation not permitted
Error: Command failed with exit code 1: adb shell date 01010941
at makeError (/Users/nikhilmittal/Desktop/Github/loki/node_modules/react-native-owl/node_modules/execa/lib/error.js:60:11)
at handlePromise (/Users/nikhilmittal/Desktop/Github/loki/node_modules/react-native-owl/node_modules/execa/index.js:118:26)
at processTicksAndRejections (internal/process/task_queues.js:95:5) {
shortMessage: 'Command failed with exit code 1: adb shell date 01010941',
command: 'adb shell date 01010941',
escapedCommand: 'adb shell date 01010941',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: undefined,
stderr: undefined,
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
Metadata
Metadata
Assignees
Labels
No labels