Ignore:
Timestamp:
Apr 10, 2018, 6:42:56 AM (7 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
AutomationFragmentation_failures, Candidate_v1.6.1, ChemicalSpaceEvaluator, Enhanced_StructuralOptimization_continued, Exclude_Hydrogens_annealWithBondGraph, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_contraction-expansion, Gui_displays_atomic_force_velocity, JobMarket_RobustOnKillsSegFaults, PythonUI_with_named_parameters, StoppableMakroAction, TremoloParser_IncreasedPrecision
Children:
a5c293
Parents:
456f19
git-author:
Frederik Heber <frederik.heber@…> (04/07/18 21:09:55)
git-committer:
Frederik Heber <frederik.heber@…> (04/10/18 06:42:56)
Message:

FIX: Integration tests now abort safely when one of the programs dies.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/integration/molecuilder_poolworker.in

    r456f19 r1e58bb  
    1 #!/bin/sh
     1#!/bin/bash
    22#
    33# wrapper for testing molecuilder
     
    55. ../../atlocal
    66
     7trap 'echo "Killing process group $$"; pkill --signal 9 -P $$' SIGTERM SIGINT
     8
     9#PGID=$(ps -o pgid= $PID | grep -o [0-9]*)
     10#trap 'kill -- -"$PGID"' SIGINT SIGTERM
     11
    712SCLIBDIR="@abs_top_srcdir@/ThirdParty/mpqc_open/lib"
    813export SCLIBDIR
    914
    1015if test -e ${AUTOTEST_PATH}/molecuilder_poolworker; then
    11         ${AUTOTEST_PATH}/molecuilder_poolworker $@
     16        ${AUTOTEST_PATH}/molecuilder_poolworker $@ &
    1217else
    1318        echo "Could not find molecuilder_poolworker."
     
    1520fi
    1621
     22# we need the wait here (and poolworker running in the background) as otherwise
     23# the above trap will not get activated.
     24wait $!
     25
    1726status=$?
    1827
Note: See TracChangeset for help on using the changeset viewer.