Commit 11cf71c4 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Revert "run-in-tempdir: Improve speed"

This reverts commit dd60179d

 as it broke coverage for Python.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent e32e1fb9
......@@ -8,27 +8,19 @@ set -e
tmpdir=$(mktemp -d -t gntbuild.XXXXXXXX)
trap "rm -rf $tmpdir" EXIT
linkcopy() {
cp -L -s -r "$@"
}
dirs=( autotools daemons scripts lib tools qa )
# fully copy items
cp -r autotools daemons scripts lib tools qa $tmpdir
if [[ -z "$COPY_DOC" ]]; then
mkdir $tmpdir/doc
ln -s $PWD/doc/examples $tmpdir/doc
else
# Building documentation requires all files
dirs+=( doc )
cp -r doc $tmpdir
fi
# Create symlinks
for i in ${dirs[@]}; do
linkcopy $PWD/$i $tmpdir
done
mkdir $tmpdir/test/
linkcopy $PWD/test/py $tmpdir/test/py
cp -r test/py $tmpdir/test/py
ln -s $PWD/test/data $tmpdir/test
ln -s $PWD/test/hs $tmpdir/test
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment