Skip to content

Commit

Permalink
list devices after creation
Browse files Browse the repository at this point in the history
  • Loading branch information
NathHorrigan committed Aug 21, 2021
1 parent fa6debb commit b45f1c6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/integration/ios/tests/dylib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ mod tests {
// Create a unique iOS device
delete_existing_device();
create_ios_device();
list_devices();

// Tets the 'DylibExample' scheme
let success = run_ios_test("DylibExample/DylibExample.xcodeproj", "DylibExample");
Expand Down Expand Up @@ -45,6 +46,17 @@ mod tests {
return success;
}

fn list_devices() -> Output {
Command::new("xcrun")
.arg("simctl")
.arg("list")
.arg("devices")
.stdout(Stdio::inherit())
.stderr(Stdio::inherit())
.output()
.expect("Could not list iOS devices")
}

fn create_ios_device() -> Output {
Command::new("xcrun")
.arg("simctl")
Expand Down

0 comments on commit b45f1c6

Please sign in to comment.