Commit 69849d1d authored by Marco Buttu's avatar Marco Buttu
Browse files

Added the MSCU to SRT/Simulators/Hardware

parent 043c7f3c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -6,13 +6,13 @@ import subprocess

def run(test_case):
    # Use the simulators and the testing CDB
    server_name = 'mscu' if test_case.telescope == 'SRT' else ''
    server_name = 'srt-mscu' if test_case.telescope == 'SRT' else ''
    if not server_name:
        sys.exit(0) 

    FNULL = open(os.devnull, 'w')
    try:
        subprocess.Popen(['%s-start' %server_name], stdout=FNULL, stderr=FNULL)
        subprocess.Popen(['%s-sim start' %server_name], stdout=FNULL, stderr=FNULL)
        time.sleep(1) # Give the server the time to start
        suite = unittest2.TestSuite()
        tests = unittest2.TestLoader().loadTestsFromTestCase(test_case)
@@ -20,5 +20,5 @@ def run(test_case):
        print 'Running the tests using the antenna simulators...'
        unittest2.TextTestRunner(verbosity=2).run(suite)
    finally:
        subprocess.Popen(['%s-stop' %server_name], stdout=FNULL, stderr=FNULL)
        subprocess.Popen(['%s-sim stop' %server_name], stdout=FNULL, stderr=FNULL)
        time.sleep(2) # Give the server the time to stop
+2 −2
Original line number Diff line number Diff line
@@ -4,8 +4,8 @@
#-----------------------------------------
#*****************************************

PY_PACKAGES = SRTMinorServoTest
PY_SCRIPTS = mscu-start mscu-stop
PY_PACKAGES = 
PY_SCRIPTS = 

# On-Line Database Files
# ----------------------
+0 −0

Empty file deleted.

+0 −9
Original line number Diff line number Diff line
#!/usr/bin/env python

from SRTMinorServoTest.mscu import mscu

if __name__ == "__main__":
    server = mscu.MSCU()
    server.run()

+0 −7
Original line number Diff line number Diff line
#!/usr/bin/env python

from SRTMinorServoTest.mscu import mscu

if __name__ == "__main__":
    mscu.MSCU.stop()
Loading