def main():
    try:
        test_dashvisor.setUp()
        while True:
            time.sleep(10)
    except KeyboardInterrupt:
        print('stopping..')
        test_dashvisor.tearDown()
        print('stopped')
Example #2
0
def main():
    try:
        test_dashvisor.setUp()
        while True:
            time.sleep(10)
    except KeyboardInterrupt:
        print 'stoping..'
        test_dashvisor.tearDown()
        print 'stoped'
Example #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()