Skip to content

Instantly share code, notes, and snippets.

@rcorre

rcorre/bad_tests.sh

Created Jul 13, 2016
Embed
What would you like to do?
Find qutebrowser tests that leave lingering folders
#!/bin/sh
config=""
data=""
cache=""
for file in $(find tests/end2end -name test_*.py)
do
echo "running $file"
.tox/py35/bin/python scripts/dev/run_pytest.py -- $file
if [ -e ~/.config/qute_test ]
then
config="$config $file"
rm -r ~/.config/qute_test
fi
if [ -e ~/.local/share/qute_test ]
then
data="$data $file"
rm -r ~/.local/share/qute_test
fi
if [ -e ~/.cache/qute_test ]
then
cache="$cache $file"
rm -r ~/.cache/qute_test
fi
done
echo "-----"
echo "config: $config"
echo "-----"
echo "data: $data"
echo "-----"
echo "cache: $cache"
echo "-----"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment