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

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

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

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