Пример #1
0
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-

import argparse
import subprocess
import os
from c2w.scripts._trial_generic import get_spec

FOR_SPECS = ['g6', 'g14']
spec = get_spec(FOR_SPECS)


def main():
    trial_class = 'c2w.test.protocol.udp_client_test.c2wUdpChatClientTestCase'
    cmdLine = ['trial',
               trial_class + '.test_one_user_login_udp_client_test']
    try:
        retcode = subprocess.call(cmdLine)
    except KeyboardInterrupt:
        pass  # ignore CTRL-C


if __name__ == '__main__':
    main()
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-

import argparse
import subprocess
import os
import sys
from c2w.scripts._trial_generic import get_spec

spec = get_spec(['g6', 'g14'])

# decide if this script is relevant for the spec

trial_class = 'c2w.test.protocol.udp_server_test.c2wUdpChatServerTestCase'
cmdLine = ['trial',
           trial_class + '.test_one_user_login_udp_server_test']
try:
    retcode = subprocess.call(cmdLine)
except KeyboardInterrupt:
    pass  # ignore CTRL-C