Author: bugman Date: Mon Sep 2 10:41:47 2013 New Revision: 20735 URL: http://svn.gna.org/viewcvs/relax?rev=20735&view=rev Log: Created a system test to catch bug #21081 (https://gna.org/bugs/?21081). This uses a truncated version of Troel Linnet's save state attached to the bug report (the data pipes not used in the model selection have been manually deleted as well as all by the first 3 spins in the remaining 2 data pipes). Added: branches/relax_disp/test_suite/shared_data/saved_states/bug_21081_disp_cluster_fail.bz2 (with props) Modified: branches/relax_disp/test_suite/system_tests/relax_disp.py Added: branches/relax_disp/test_suite/shared_data/saved_states/bug_21081_disp_cluster_fail.bz2 URL: http://svn.gna.org/viewcvs/relax/branches/relax_disp/test_suite/shared_data/saved_states/bug_21081_disp_cluster_fail.bz2?rev=20735&view=auto ============================================================================== Binary file - no diff available. Propchange: branches/relax_disp/test_suite/shared_data/saved_states/bug_21081_disp_cluster_fail.bz2 ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Modified: branches/relax_disp/test_suite/system_tests/relax_disp.py URL: http://svn.gna.org/viewcvs/relax/branches/relax_disp/test_suite/system_tests/relax_disp.py?rev=20735&r1=20734&r2=20735&view=diff ============================================================================== --- branches/relax_disp/test_suite/system_tests/relax_disp.py (original) +++ branches/relax_disp/test_suite/system_tests/relax_disp.py Mon Sep 2 10:41:47 2013 @@ -87,6 +87,20 @@ # Copy the data. self.interpreter.value.copy(pipe_from='R2eff', pipe_to=model, param='r2eff') + + + def test_bug_21081_disp_cluster_fail(self): + """U{Bug #21081<https://gna.org/bugs/?21081>} catch, the failure of a cluster analysis when spins are deselected.""" + + # Clear the data store. + self.interpreter.reset() + + # Load the state. + state = status.install_path + sep+'test_suite'+sep+'shared_data'+sep+'saved_states'+sep+'bug_21081_disp_cluster_fail.bz2' + self.interpreter.state.load(state, force=True) + + # Model selection - to catch the failure. + self.interpreter.model_selection(method='AIC', modsel_pipe='final', bundle='relax_disp', pipes=['No Rex', 'CR72']) def test_dpl94_data_to_dpl94(self):