diff --git a/releasenotes/notes/xiv-generic-volume-group-4609cdc86d6aaf81.yaml b/releasenotes/notes/xiv-generic-volume-group-4609cdc86d6aaf81.yaml old mode 100755 new mode 100644 diff --git a/tools/check_exec.py b/tools/check_exec.py index d423f3d9ae6..28755f5ba9d 100755 --- a/tools/check_exec.py +++ b/tools/check_exec.py @@ -23,16 +23,17 @@ if len(sys.argv) < 2: print("Usage: %s " % sys.argv[0]) sys.exit(1) -directory = sys.argv[1] +directories = sys.argv[1:] executable = [] -for root, mydir, myfile in os.walk(directory): - for f in myfile: - path = os.path.join(root, f) - mode = os.lstat(path).st_mode - if stat.S_IXUSR & mode: - executable.append(path) +for d in directories: + for root, mydir, myfile in os.walk(d): + for f in myfile: + path = os.path.join(root, f) + mode = os.lstat(path).st_mode + if stat.S_IXUSR & mode: + executable.append(path) if executable: print("Executable files found:") diff --git a/tox.ini b/tox.ini index 13f5b6ce7a1..f161e92d774 100644 --- a/tox.ini +++ b/tox.ini @@ -57,7 +57,7 @@ setenv = commands = flake8 {posargs} . {toxinidir}/tools/config/check_uptodate.sh - {toxinidir}/tools/check_exec.py {toxinidir}/cinder + {toxinidir}/tools/check_exec.py {toxinidir}/cinder {toxinidir}/releasenotes/notes [testenv:fast8] # Use same environment directory as pep8 env to save space and install time