]> git-server-git.apps.pok.os.sepia.ceph.com Git - remoto.git/commitdiff
tests: add more example funcs for remote exec verification
authorAlfredo Deza <alfredo@deza.pe>
Wed, 13 Feb 2019 18:50:33 +0000 (13:50 -0500)
committerAlfredo Deza <alfredo@deza.pe>
Wed, 13 Feb 2019 20:14:36 +0000 (15:14 -0500)
Signed-off-by: Alfredo Deza <alfredo@deza.pe>
remoto/tests/fake_module.py

index 0252def6d1d7739ee2193d4576064fea8cf954a3..b4194feebff17ded04df0caeeaf519b482553ac0 100644 (file)
@@ -2,6 +2,24 @@
 this is just a stub module to use to test the `import_module` functionality in
 remoto
 """
+import sys
+
 
 def function(conn):
     return True
+
+
+def fails():
+    raise Exception('failure from fails() function')
+
+
+def unexpected_fail():
+    sys.exit(1)
+
+
+def noop():
+    sys.exit(0)
+
+
+def passes():
+    pass