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 2f07a3b675
commit 0ef28f5bde

View File

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