Skip to content

Commit

Permalink
Install jq/yq for more readable tests in tmt test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
happz authored Feb 21, 2023
1 parent 98a569a commit 3b6b3c6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/contribute.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ In order to experiment, play with the latest bits and develop
improvements it is best to use a virtual environment. Make sure
that you have all required packages installed on your box::

sudo dnf install gcc make git python3-docutils {python3,libvirt,krb5,libpq}-devel
sudo dnf install gcc make git python3-docutils {python3,libvirt,krb5,libpq}-devel jq

In case you're using Centos Stream 9 system you need to enable CRB
repository first to make all the necessary packages available::
Expand Down
15 changes: 15 additions & 0 deletions plans/features/main.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
prepare+:
# Install jq and yq for cleaner tests
- how: install
package:
- jq
- python3-pip

- how: shell
script:
# Try to install into .local first, if that fails, try without --user.
# In the sane world, tmt would be running in a virtualenv, and we'd
# install yq there. Otherwise, we'd change system packages, but we'd
# have to run as root to do that, and who's running tmt test suite
# as root?
- pip3 install --user yq || pip3 install yq
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
'python-coveralls',
'requre',
'pre-commit',
'mypy'
'mypy',
'yq'
],
'provision': ['testcloud>=0.8.2'],
'convert': [
Expand Down

0 comments on commit 3b6b3c6

Please sign in to comment.