[xharness] Don't try to run 32-bit tests on devices that don't support 32-bits. (#2749)

This commit is contained in:
Rolf Bjarne Kvinge 2017-09-22 19:53:35 +02:00 коммит произвёл GitHub
Родитель 76b759ef22
Коммит fdaeb9f2d2
2 изменённых файлов: 16 добавлений и 1 удалений

Просмотреть файл

@ -168,7 +168,7 @@ namespace xharness
Platform = TestPlatform.iOS_Unified32,
TestName = project.Name,
};
rv.Add (new RunDeviceTask (build32, Devices.ConnectedDevices.Where ((dev) => dev.DevicePlatform == DevicePlatform.iOS)) { Ignored = ignored || !IncludeiOS });
rv.Add (new RunDeviceTask (build32, Devices.ConnectedDevices.Where ((dev) => dev.DevicePlatform == DevicePlatform.iOS && dev.Supports32Bit)) { Ignored = ignored || !IncludeiOS });
var todayProject = project.AsTodayExtensionProject ();
var buildToday = new XBuildTask {

Просмотреть файл

@ -619,6 +619,21 @@ namespace xharness
get { return Architecture == Architecture.ARM64; }
}
public bool Supports32Bit {
get {
switch (DevicePlatform) {
case DevicePlatform.iOS:
return Version.Parse (ProductVersion).Major < 11;
case DevicePlatform.tvOS:
return false;
case DevicePlatform.watchOS:
return true;
default:
throw new NotImplementedException ();
}
}
}
public Architecture Architecture {
get {
var model = ProductType;