Skip to content

Commit f14ca3c

Browse files
authored
tox: fix test failure on ubuntu 20.04
Fix the following error: py36 run-test: commands[1] | find /dev/shm -name 'tox_py36*' -delete /usr/bin/find: ‘/dev/shm/multipath’: Permission denied We don't care if there are folders in which we cannot enter. Ignore if the find command fails.
1 parent 61c8a44 commit f14ca3c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ whitelist_externals =
2323
/usr/bin/find
2424
commands =
2525
rm -rf '{env:SYSREPO_REPOSITORY_PATH}'
26-
find /dev/shm -name '{env:SYSREPO_SHM_PREFIX}*' -delete
26+
-find /dev/shm -name '{env:SYSREPO_SHM_PREFIX}*' -delete
2727
python -Wd -m unittest discover -c
28-
find /dev/shm -name '{env:SYSREPO_SHM_PREFIX}*' -delete
28+
-find /dev/shm -name '{env:SYSREPO_SHM_PREFIX}*' -delete
2929
rm -rf '{env:SYSREPO_REPOSITORY_PATH}'
3030

3131
[testenv:coverage]
@@ -41,9 +41,9 @@ whitelist_externals =
4141
/usr/bin/find
4242
commands =
4343
rm -rf '{env:SYSREPO_REPOSITORY_PATH}'
44-
find /dev/shm -name '{env:SYSREPO_SHM_PREFIX}*' -delete
44+
-find /dev/shm -name '{env:SYSREPO_SHM_PREFIX}*' -delete
4545
python -Wd -m coverage run -m unittest discover -c tests/
46-
find /dev/shm -name '{env:SYSREPO_SHM_PREFIX}*' -delete
46+
-find /dev/shm -name '{env:SYSREPO_SHM_PREFIX}*' -delete
4747
rm -rf '{env:SYSREPO_REPOSITORY_PATH}'
4848
python -m coverage report
4949
python -m coverage html

0 commit comments

Comments
 (0)