From 17d73975c8aea925ba83b20f401e743330928c35 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Sat, 1 Jun 2019 16:50:11 -0700 Subject: [PATCH] [xtro] 'raw' files might not exist. (#6191) If we just fixed all the entries in the corresponding '*.ignore' file, there won't be a '*.raw' file. --- tests/xtro-sharpie/xtro-sanity/Sanitizer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/xtro-sharpie/xtro-sanity/Sanitizer.cs b/tests/xtro-sharpie/xtro-sanity/Sanitizer.cs index f34a152440..b1a1720b20 100644 --- a/tests/xtro-sharpie/xtro-sanity/Sanitizer.cs +++ b/tests/xtro-sharpie/xtro-sanity/Sanitizer.cs @@ -220,7 +220,7 @@ namespace Extrospection { if (!shortname.Contains ("-")) continue; var rawfile = Path.ChangeExtension (file, ".raw"); - var raws = new List (File.ReadAllLines (rawfile)); + var raws = new List (File.Exists (rawfile) ? File.ReadAllLines (rawfile) : Array.Empty ()); var failures = new List (); var lines = File.ReadAllLines (file); foreach (var entry in lines) {