Skip to content

Commit 2df860d

Browse files
committed
Fix import and chown on docs
1 parent 2173e89 commit 2df860d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

run_pytest.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
PYTHON_DOCKER_IMAGE=doc_as_test_python
88

99
function run_on_docker {
10-
COMMAND="$*"
10+
COMMAND=$*
1111

1212
docker run \
1313
-v $(pwd):/project \
1414
-w /project \
1515
-it $PYTHON_DOCKER_IMAGE \
16-
${COMMAND}
16+
bash -c "${COMMAND}"
1717
}
1818

1919
run_on_docker "pytest $*"
2020

2121
chmod a+x ./docker/chown_docs.sh
22-
run_on_docker bash -c "/project/docker/chown_docs.sh $(whoami) /project/docs"
22+
run_on_docker "/project/docker/chown_docs.sh $(whoami) /project/docs"

src/doc_as_test_pytest.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import json
12
import os
23
import pytest
34
from approvaltests.pytest.namer import Namer

0 commit comments

Comments
 (0)