コード例 #1
0
def main():
    try:
        test_dashvisor.setUp()
        while True:
            time.sleep(10)
    except KeyboardInterrupt:
        print('stopping..')
        test_dashvisor.tearDown()
        print('stopped')
コード例 #2
0
def main():
    try:
        test_dashvisor.setUp()
        while True:
            time.sleep(10)
    except KeyboardInterrupt:
        print 'stoping..'
        test_dashvisor.tearDown()
        print 'stoped'
コード例 #3
0
#!/usr/bin/env python

from time import sleep

from test_dashvisor import setUp, tearDown

if __name__ == '__main__':
    try:
        setUp()
        while True:
            sleep(100)
    except (Exception, KeyboardInterrupt), e:
        tearDown()