on master help sign in
Only change diff options for OpenBSD
commitbd1aef36e09835c2dc52df9f5e7d22fe210ac76c authorScott Bonds <scott@ggr.com> dateFri 4 Aug 2017, 15:16 (9 years ago) parent2367d60
1 file changed+2−1
test/TestRun.hs+2−1
test/TestRun.hs+2−1
@@ -65,7 +65,8 @@ test testName path = goldenVsFileDiff testName diff ref output
6565 where
6666 ref = path </> "expected"
6767 output = path </> "output"
68− diff ref new = ["diff", "-u", new, ref]
68+ diff ref new | os == "openbsd" = ["diff", "-u", new, ref]
69+ | otherwise = ["diff", "--strip-trailing-cr", "-u", new, ref]
6970
7071-- Should always output a 3-charater string from a postive Int
7172indexToString :: Int -> String