Check if device build is available before running device tests.
This commit is contained in:
Родитель
969c867070
Коммит
65b3cdadc1
|
@ -49,6 +49,11 @@ namespace Xamarin.Tests
|
|||
[TestCase (Profile.tvOS, MachO.LoadCommands.MintvOS, true)]
|
||||
public void MinOSVersion (Profile profile, MachO.LoadCommands load_command, bool device = false)
|
||||
{
|
||||
#if MTOUCH_TESTS
|
||||
if (device)
|
||||
MTouch.AssertDeviceAvailable ();
|
||||
#endif
|
||||
|
||||
var dylibs = Directory.GetFiles (Configuration.GetSdkPath (profile, device), "*.dylib", SearchOption.AllDirectories)
|
||||
.Where ((v) => !v.Contains ("dylib.dSYM/Contents/Resources/DWARF")); // Don't include *.dylib from inside .dSYMs.
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче