Skip to content

Commit

Permalink
Add Dockerfile to python test directory
Browse files Browse the repository at this point in the history
Add initial version of test Dockerfile to python test directory.
  • Loading branch information
HeavyWombat committed Mar 22, 2019
1 parent 02353fc commit 0314cc4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
16 changes: 16 additions & 0 deletions third_party/pytest/pycgo/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM ubuntu

RUN apt-get update >/dev/null && \
DEBIAN_FRONTEND=noninteractive apt-get install -y make build-essential \
libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev \
wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev python-openssl git

RUN curl https://pyenv.run | bash

ENV PATH="/root/.pyenv/bin:$PATH"
RUN eval "$(pyenv init -)"
RUN eval "$(pyenv virtualenv-init -)"

RUN pyenv install 3.6.6
6 changes: 3 additions & 3 deletions third_party/pytest/pycgo/updateYAML.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def updateYAML(location, pathString, newValue):


if __name__ == '__main__':
location = sys.argv[0]
pathString = sys.argv[1]
newValue = YAML().load(sys.argv[2])
location = sys.argv[1]
pathString = sys.argv[2]
newValue = YAML().load(sys.argv[3])
updateYAML(location, pathString, newValue)
2 changes: 1 addition & 1 deletion third_party/pytest/pycgo/updateYAML_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@


class TestStringMethods(unittest.TestCase):
assets = os.path.dirname(os.path.realpath(__file__)) + "/../../assets"
assets = os.path.dirname(os.path.realpath(__file__)) + "/../../../assets"

def test_empty_list_in_getEntryIdxByIdentifier(self):
self.assertEqual(getEntryIdxByIdentifier([], "name", "foobar"), -1)
Expand Down

0 comments on commit 0314cc4

Please sign in to comment.