From 5dae68531452a4c15cd6e241ec7ee4d686f5f150 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Mon, 7 Aug 2023 17:10:57 +0200 Subject: [PATCH] ceph-container-flake8: fix test Looks like this job has never worked. The file should be bind-mounted in /code, not in / There's no need to pass arguments, the entrypoint automatically scan /code and run flake8 against any present files. Signed-off-by: Guillaume Abrioux --- ceph-container-flake8/build/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceph-container-flake8/build/build b/ceph-container-flake8/build/build index ebfbf305..ccc54bef 100755 --- a/ceph-container-flake8/build/build +++ b/ceph-container-flake8/build/build @@ -21,7 +21,7 @@ function check(){ while read -r filename; do pushd "$(dirname "$filename")" file=$(basename "$filename") - sudo docker run --rm -v "$workspace"/ceph-container/tox.ini:/tox.ini:z -v "$(pwd)"/"$file":/"$file":z eeacms/flake8 /"$file" + sudo docker run --rm -v "$workspace"/ceph-container/tox.ini:/tox.ini:z -v "$(pwd)"/"$file":/code/"$file":z eeacms/flake8 popd done return $? -- 2.47.3