Update tests

Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
This commit is contained in:
Petr "Stone" Hracek 2017-05-03 09:12:42 +02:00
parent a5499de9e0
commit f319e135b7
4 changed files with 9 additions and 17 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
*.py[oc]
tests/generated.py

View File

@ -4,5 +4,4 @@ CMD=python -m avocado run --filter-by-tags=-WIP $(MODULE_LINT) *.py
#
all:
generator
$(CMD)

View File

@ -8,23 +8,14 @@ packages:
rpms:
# add which here because of the issue.
# https://pagure.io/modularity-testing-framework/issue/45
- which
- ruby
testdependecies:
rpms:
- which
module:
docker:
start: "docker run -it"
container: docker.io/ruby
rpm:
repos:
- http://download.eng.brq.redhat.com/pub/fedora/linux/development/rawhide/Everything/x86_64/os/
- http://download.eng.brq.redhat.com/pub/fedora/linux/development/26/Everything/x86_64/os/
test:
cmd:
- 'which ruby'
version:
- 'ruby -v'
testhost:
hostname:
- 'hostname'
- http://mirror.vutbr.cz/fedora/releases/25/Everything/x86_64/os/

View File

@ -4,10 +4,7 @@ import socket
from avocado import main
from moduleframework import module_framework
if __name__ == '__main__':
main()
class GeneratedTestsConfig(module_framework.AvocadoTest):
class RubyTests(module_framework.AvocadoTest):
"""
:avocado: enable
"""
@ -22,4 +19,8 @@ class GeneratedTestsConfig(module_framework.AvocadoTest):
def test_hostname(self):
self.start()
self.runHost("hostname")
self.run("hostname")
if __name__ == '__main__':
main()