generic/014: Fix wrong return value in output
authorZhao Lei <zhaolei@cn.fujitsu.com>
Tue, 22 Sep 2015 00:45:20 +0000 (10:45 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 22 Sep 2015 00:45:20 +0000 (10:45 +1000)
commited731fec7c4a5528a0e7afa03ce188d7e34192c7
tree4f20f82ce98eb2fd0a05c5ae056236bbfe12753a
parent3038de2b24da1081cf434ce8590818469487c21d
generic/014: Fix wrong return value in output

Current code always output "truncfile returned 0" because $? was
modified by previous command. Use $ret to indicate the correct
return value from truncfile.

[dchinner: fix formatting issues, update commit message.]

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/generic/014