Skip to content

Commit

Permalink
fix test run scripts to support the tvos changes
Browse files Browse the repository at this point in the history
  • Loading branch information
maxphillipsdev committed Jan 7, 2025
1 parent 908aae9 commit 2ad31ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 70;
objectVersion = 55;
objects = {

/* Begin PBXBuildFile section */
Expand Down
2 changes: 1 addition & 1 deletion maestro-ios-xctest-runner/run-maestro-ios-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if [ -z "$DEVICE" ]; then
echo "No device passed, will default to $DEVICE"
fi

xctestrun_file="$(find ./build/Products -maxdepth 1 -name '*.xctestrun' -print)"
xctestrun_file="$(find ./build/Products -maxdepth 1 -name '*iphone*.xctestrun' -print)"
file_count="$(echo "$xctestrun_file" | wc -l | tr -d '[:blank:]')"
if [ "$file_count" = 1 ]; then
echo "xctestrun file found: $xctestrun_file"
Expand Down
8 changes: 4 additions & 4 deletions maestro-ios-xctest-runner/test-maestro-ios-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ if [ "$(basename "$PWD")" != "maestro" ]; then
exit 1
fi

if [ ! -d ./build/Products/Debug-iphonesimulator/maestro-driver-iosUITests-Runner.app ]; then
echo "XCTest runner app not found in ./build/Products/Debug-iphonesimulator/maestro-driver-iosUITests-Runner.app"
if [ ! -d ./build/Products/Debug-iphonesimulator/maestro-driver-UITests-Runner.app ]; then
echo "XCTest runner app not found in ./build/Products/Debug-iphonesimulator/maestro-driver-UITests-Runner.app"
exit 1
fi

if [ ! -d ./build/Products/Debug-iphonesimulator/maestro-driver-ios.app ]; then
echo "Dummy test app not found in ./build/Products/Debug-iphonesimulator/maestro-driver-ios.app"
if [ ! -d ./build/Products/Debug-iphonesimulator/maestro-driver.app ]; then
echo "Dummy test app not found in ./build/Products/Debug-iphonesimulator/maestro-driver.app"
exit 1
fi

Expand Down

0 comments on commit 2ad31ea

Please sign in to comment.