Skip to content

Commit

Permalink
Troublehoot pipeline tool tests (#71)
Browse files Browse the repository at this point in the history
* changed go version
  • Loading branch information
epi052 authored Jun 13, 2020
1 parent 7e261a1 commit 9e863a2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,4 @@ jobs:
- name: Test with pytest
run: |
pipenv install pytest cmd2 luigi sqlalchemy python-libnmap
pipenv run python -m pytest tests/test_tools_install
pipenv run python -m pytest -vv --show-capture=all tests/test_tools_install
2 changes: 1 addition & 1 deletion pipeline/tools/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ bashrc: &bashrc !join_path [!get_default "{home}", .bashrc]
path: &gotool !join_path [!get_default "{goroot}", go/bin/go]

commands:
- wget -q https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz -O /tmp/go.tar.gz
- wget -q https://dl.google.com/go/go1.14.4.linux-amd64.tar.gz -O /tmp/go.tar.gz
- !join [tar -C, !get_default "{goroot}", -xvf /tmp/go.tar.gz]
- !join ["bash -c 'if [ ! $(grep $(dirname", *gotool, ")", *bashrc, ") ]; then echo PATH=${PATH}:$(dirname", *gotool, ") >>", *bashrc, "; fi'"]
1 change: 1 addition & 0 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ def run_cmd(app, cmd):

out = copy_cmd_stdout.getvalue()
err = copy_stderr.getvalue()

return normalize(out), normalize(err)

0 comments on commit 9e863a2

Please sign in to comment.