Check if device build is available before running device tests.

This commit is contained in:
Rolf Bjarne Kvinge 2019-02-06 15:24:08 +01:00
Родитель 969c867070
Коммит 65b3cdadc1
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -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.