Use sub-shells instead of pushd / popd.

The push and pop commands print the directory stack to stdout, while subshells
and cd is quiet.
This commit is contained in:
Jakob Stoklund Olesen
2016-07-29 12:35:56 -07:00
parent a9748dff02
commit 14027660c5

View File

@@ -21,10 +21,11 @@ PKGS="libcretonne libreader tools"
echo ====== Rust unit tests and debug builds ======
for PKG in $PKGS
do
pushd $topdir/src/$PKG
(
cd $topdir/src/$PKG
cargo test
cargo build
popd
)
done
# Build cton-util for parser testing.