From d7386b7a33d6d0ab822380c2a7881984e55b8741 Mon Sep 17 00:00:00 2001 From: Ev Kontsevoy Date: Fri, 7 Oct 2016 19:06:06 -0700 Subject: [PATCH] Tests fail on OSX without brew binutils Replaced 'expr' with simple bash math --- lib/srv/sshserver_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/srv/sshserver_test.go b/lib/srv/sshserver_test.go index 86c9694ac30..2889e0b8e5b 100644 --- a/lib/srv/sshserver_test.go +++ b/lib/srv/sshserver_test.go @@ -310,7 +310,7 @@ func (s *SrvSuite) testClient(c *C, proxyAddr, targetAddr, remoteAddr string, ss c.Assert(err, IsNil) defer se2.Close() - out, err := se2.Output("expr 2 + 3") + out, err := se2.Output("echo $((2+3))") c.Assert(err, IsNil) c.Assert(strings.Trim(string(out), " \n"), Equals, "5")