Skip to content

Instantly share code, notes, and snippets.

@rcorre
Created July 13, 2016 00:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rcorre/51853b0b2b8be929930e08d3e782a9de to your computer and use it in GitHub Desktop.
Save rcorre/51853b0b2b8be929930e08d3e782a9de to your computer and use it in GitHub Desktop.
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