You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
463 B
27 lines
463 B
8 years ago
|
#!/usr/bin/python
|
||
|
|
||
|
import socket
|
||
|
from avocado import main
|
||
|
from moduleframework import module_framework
|
||
|
|
||
8 years ago
|
class RubyTests(module_framework.AvocadoTest):
|
||
8 years ago
|
"""
|
||
|
:avocado: enable
|
||
|
"""
|
||
|
|
||
|
def test_cmd(self):
|
||
|
self.start()
|
||
|
self.run("which ruby")
|
||
|
|
||
|
def test_version(self):
|
||
|
self.start()
|
||
|
self.run("ruby -v")
|
||
|
|
||
|
def test_hostname(self):
|
||
|
self.start()
|
||
8 years ago
|
self.run("hostname")
|
||
|
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
main()
|