1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-05 21:23:02 +00:00

clean tests

This commit is contained in:
deadc0de6
2021-10-19 22:49:46 +02:00
parent 54a3651984
commit e8bc0bba2f

View File

@@ -87,7 +87,13 @@ echo 'test_y' > ${basedir}/dotfiles/y
echo "00000000 01 02 03 04 05" | xxd -r - ${basedir}/dotfiles/z
echo "[+] install"
cd ${ddpath} | ${bin} install -f -c ${cfg} -p p1 --showdiff --verbose --temp | grep '^3 dotfile(s) installed.$'
cd ${ddpath} | ${bin} install -f -c ${cfg} -p p1 --showdiff --verbose --temp > ${basedir}/log
tmpfile=`cat ${basedir}/log | grep 'installed to tmp ' | sed 's/^.*to tmp "\(.*\)"./\1/'`
echo "tmpfile: ${tmpfile}"
clear_on_exit "${tmpfile}"
cat $log | grep '^3 dotfile(s) installed.$'
[ "$?" != "0" ] && exit 1
echo "OK"