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] *.py[oc]
tests/generated.py

View File

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

View File

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

View File

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