Author: bugman Date: Fri Oct 15 17:53:49 2010 New Revision: 11638 URL: http://svn.gna.org/viewcvs/relax?rev=11638&view=rev Log: Fixes for the BMRB system tests. These tests were non-functional! Modified: branches/bmrb/test_suite/system_tests/bmrb.py Modified: branches/bmrb/test_suite/system_tests/bmrb.py URL: http://svn.gna.org/viewcvs/relax/branches/bmrb/test_suite/system_tests/bmrb.py?rev=11638&r1=11637&r2=11638&view=diff ============================================================================== --- branches/bmrb/test_suite/system_tests/bmrb.py (original) +++ branches/bmrb/test_suite/system_tests/bmrb.py Fri Oct 15 17:53:49 2010 @@ -21,16 +21,17 @@ ############################################################################### # Python module imports. -from os import remove +import __main__ +from os import remove, sep import sys from tempfile import mktemp -from unittest import TestCase # relax module imports. +from base_classes import SystemTestCase from data import Relax_data_store; ds = Relax_data_store() -class Bmrb(TestCase): +class Bmrb(SystemTestCase): """TestCase class for functional tests of the reading and writing of BMRB STAR formatted files.""" def setUp(self): @@ -60,7 +61,7 @@ ds.version = '3.0' # Execute the script. - self.relax.interpreter.run(script_file=sys.path[-1] + '/test_suite/system_tests/scripts/bmrb_rw.py') + self.interpreter.run(script_file=__main__.install_path + sep+'test_suite'+sep+'system_tests'+sep+'scripts'+sep+'bmrb_rw.py') def test_rw_bmrb_3_1_model_free(self): @@ -70,7 +71,7 @@ ds.version = '3.1' # Execute the script. - self.relax.interpreter.run(script_file=sys.path[-1] + '/test_suite/system_tests/scripts/bmrb_rw.py') + self.interpreter.run(script_file=__main__.install_path + sep+'test_suite'+sep+'system_tests'+sep+'scripts'+sep+'bmrb_rw.py') def test_rw_bmrb_3_2_model_free(self): @@ -80,4 +81,4 @@ ds.version = '3.2' # Execute the script. - self.relax.interpreter.run(script_file=sys.path[-1] + '/test_suite/system_tests/scripts/bmrb_rw.py') + self.interpreter.run(script_file=__main__.install_path + sep+'test_suite'+sep+'system_tests'+sep+'scripts'+sep+'bmrb_rw.py')