Ignore:
Timestamp:
Mar 2, 2017, 10:26:58 PM (8 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_StructOpt_integration_tests, AutomationFragmentation_failures, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_ChronosMutex, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, GeometryObjects, Gui_displays_atomic_force_velocity, IndependentFragmentGrids_IntegrationTest, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, PartialCharges_OrthogonalSummation, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, RotateToPrincipalAxisSystem_UndoRedo, StoppableMakroAction, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, Ubuntu_1604_changes, stable
Children:
1cde364
Parents:
d8a1ff
git-author:
Frederik Heber <heber@…> (03/02/17 13:53:14)
git-committer:
Frederik Heber <heber@…> (03/02/17 22:26:58)
Message:

Fixed Examples and Calculations with respect to kill on error problems.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/Calculations/testsuite-calculations-jobmarket-cholesterol.at

    rd8a1ff r4e0e08  
    2727
    2828# start service in background
    29 ${AUTOTEST_PATH}/molecuilder_server --signal 2 --workerport $WORKERPORT --controllerport $CONTROLLERPORT &
     29${AUTOTEST_PATH}/molecuilder_server --workerport $WORKERPORT --controllerport $CONTROLLERPORT &
    3030server_pid=$!
    3131AT_CHECK([sleep 2], 0, [ignore], [ignore], [kill $server_pid])
     
    3333
    3434# enlist a worker to work on jobs
    35 ../../molecuilder_mpqc +v 5 ++signal 2 ++server 127.0.0.1:${WORKERPORT} ++hostname 127.0.0.1 ++listen $WORKERLISTENPORT &
     35../../molecuilder_mpqc +v 5 ++server 127.0.0.1:${WORKERPORT} ++hostname 127.0.0.1 ++listen $WORKERLISTENPORT &
    3636worker_pid=$!
    37 AT_CHECK([sleep 2], 0, [ignore], [ignore], [kill $server_pid $worker_pid])
    38 AT_CHECK([kill -s 0 $worker_pid], 0, [ignore], [ignore], [kill $server_pid $worker_pid])
     37AT_CHECK([sleep 2], 0, [ignore], [ignore], [kill $worker_pid $server_pid])
     38AT_CHECK([kill -s 0 $worker_pid], 0, [ignore], [ignore], [kill $worker_pid $server_pid])
    3939
    4040MOL=cholesterol
     
    5858         --analyse-fragment-results \
    5959         --fragment-prefix $FILENAME],
    60          0, [stdout], [stderr], [kill $server_pid $worker_pid])
    61 AT_CHECK([tail -n 1 ${FILENAME}_Energy.dat | awk '{print $2}' >energy_stdout], 0, [stdout], [stderr], [kill $server_pid $worker_pid])
     60         0, [stdout], [stderr], [kill $worker_pid $server_pid])
     61AT_CHECK([tail -n 1 ${FILENAME}_Energy.dat | awk '{print $2}' >energy_stdout], 0, [stdout], [stderr], [kill $worker_pid $server_pid])
    6262
    6363# send removeall to server such that all workers shutdown
    64 AT_CHECK([${AUTOTEST_PATH}/molecuilder_controller --server 127.0.0.1:$CONTROLLERPORT --command removeall], 0, [ignore], [ignore], [kill $server_pid $worker_pid])
     64AT_CHECK([${AUTOTEST_PATH}/molecuilder_controller --server 127.0.0.1:$CONTROLLERPORT --command removeall], 0, [ignore], [ignore], [kill $worker_pid $server_pid])
    6565
    6666# shutdown controller socket
    6767AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $worker_pid $server_pid])
    68 AT_CHECK([${AUTOTEST_PATH}/molecuilder_controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [stdout], [ignore], [kill $server_pid $worker_pid])
     68AT_CHECK([${AUTOTEST_PATH}/molecuilder_controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [stdout], [ignore], [kill $worker_pid $server_pid])
    6969
    7070# check that worker is truly down
    71 AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $server_pid $worker_pid])
     71AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $worker_pid $server_pid])
    7272AT_CHECK([kill $worker_pid], 1, [ignore], [ignore], [kill $server_pid])
    7373
Note: See TracChangeset for help on using the changeset viewer.