Update tests

Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
stream-ruby-3.1-rhel-9.3.0
Petr "Stone" Hracek 8 years ago
parent a5499de9e0
commit f319e135b7

1
.gitignore vendored

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

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

@ -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'

@ -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()
Loading…
Cancel
Save