Changing delete command 84/97384/5
authorSINGAL, KAPIL (ks220y) <ks220y@att.com>
Mon, 21 Oct 2019 16:47:42 +0000 (16:47 +0000)
committerKAPIL SINGAL <ks220y@att.com>
Wed, 1 Jan 2020 17:52:35 +0000 (17:52 +0000)
-delete is causing exit 1 with error "No such file or directory."
As it trying to delete files from ./.tox/* path.
Adding -not -path "./.tox" to exclude path.

Issue-ID: LOG-1173
Signed-off-by: SINGAL, KAPIL (ks220y) <ks220y@att.com>
Change-Id: Ic04d5c660e5c2ba81f3d2a2f6646bf65782a8a7a

pylog/tox.ini

index bf6b784..14ebfd0 100644 (file)
@@ -14,7 +14,7 @@ deps = -r{toxinidir}/requirements.txt
 setenv = PYTHONPATH={toxinidir}/
 
 commands =
-  /usr/bin/find . -type f -name "*.py[c|o]" -delete
+  /usr/bin/find . -type f -name "*.py[c|o]" -not -path "./.tox" -delete
   py.test
 
 [testenv:pep8]