Fix tests for verbose 'cd' commands
commitb46a06d959da1f78a7467a91b46aa727071f169c
authorMichael J Gruber <git@drmicha.warpmail.net>
Thu, 10 Sep 2015 14:25:47 +0000 (10 16:25 +0200)
committerJonas Fonseca <jonas.fonseca@gmail.com>
Sat, 12 Sep 2015 23:17:58 +0000 (12 19:17 -0400)
treeb273f77693679ba30f2bd11b922524a3f694e016
parent668a7e7efab8dfdcef5f42630d3b2e2d2be0dcec
Fix tests for verbose 'cd' commands

At least in my shell(s), "cd foo" echoes the new cwd to stdout so that
"cd foo && pwd" echoes the new cwd twice, which lets the test framework
fail completely (due to the wrong $source_dir and everything that
depends on it).

Make that construct "cd foo >/dev/null && pwd" to be super safe, rather
than simplifying to "cd foo" and relying on the behaviour of "cd".
test/tools/libtest.sh