Skip to content

Commit

Permalink
Fix script path
Browse files Browse the repository at this point in the history
  • Loading branch information
LordRaydenMK committed Nov 10, 2024
1 parent 1ecd628 commit dfbd6f1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions android/e2e.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash

# run first command
maestro test app/src/maestro/flows/flow.yml
# run maestro tests
# on CI this command is executed from the root folder so it stars with `android/`
maestro test android/app/src/maestro/flows/flow.yml
result=$?

# run second command if first one fails
# if tests fail, print the hierarchy and logcat
if [ $result -ne 0 ]; then
echo "Printing hierarchy"
maestro hierarchy
Expand Down

0 comments on commit dfbd6f1

Please sign in to comment.