From c54c481b5b7a1cb7d4a201fad9450d3abb198742 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 20 Jan 2014 01:11:33 -0500 Subject: fix librechroot test --- test/librechroot-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/librechroot-test.sh b/test/librechroot-test.sh index 442abed..d458cd9 100644 --- a/test/librechroot-test.sh +++ b/test/librechroot-test.sh @@ -65,7 +65,7 @@ it_displays_help_and_fails_with_0_args() { [[ $stat != 0 ]] empty $tmpdir/stdout - [[ "$(sed 1q $tmpdir/stderr)" =~ Usage:.* ]] + [[ "$(sed -n 2p $tmpdir/stderr)" =~ Usage:.* ]] } # requires sudo so we know it's not failing because it needs root -- cgit v1.2.3-54-g00ecf