diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-09-26 15:22:35 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-09-26 15:22:35 -0400 |
commit | c85f1a8272b665ed810ca05b5b31d35a30f00600 (patch) | |
tree | be8b0790ce7d856197bf20820ca62d93dc271f22 | |
parent | 5add4f4389d7c73fcf08edb5a2944b513d432446 (diff) | |
download | third_party-func-c85f1a8272b665ed810ca05b5b31d35a30f00600.tar.gz third_party-func-c85f1a8272b665ed810ca05b5b31d35a30f00600.tar.xz third_party-func-c85f1a8272b665ed810ca05b5b31d35a30f00600.zip |
Generalize test code.
-rw-r--r-- | overlord/test_func.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/overlord/test_func.py b/overlord/test_func.py index f3d0c61..0ee21db 100644 --- a/overlord/test_func.py +++ b/overlord/test_func.py @@ -5,6 +5,7 @@ import xmlrpclib import sys +import socket TEST_GETATTR = True TEST_PROCESS = False @@ -15,9 +16,9 @@ TEST_SMART = True if TEST_GETATTR: import func.overlord.client as func_client - #print func_client.Client("*").hardware.info() - #print func_client.Client("*").run("hardware","info",[]) - print func_client.Client("mdehaan.rdu.redhat.com",noglobs=True).test.add("1","2") + print func_client.Client("*").hardware.info() + print func_client.Client("*").run("hardware","info",[]) + print func_client.Client(socket.gethostname(),silent=True,noglobs=True).test.add("1","2") sys.exit(1) # get a connecton (to be replaced by client lib logic) |