Changeset acea635 in mod_gnutls


Ignore:
Timestamp:
Oct 11, 2017, 1:20:05 PM (2 months ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
master
Children:
ee94de5
Parents:
1872744
Message:

Test suite: Wait for Apache shutdown before "distclean" check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/Makefile.am

    r1872744 racea635  
    184184endif
    185185
     186# Delete test data directories, and wait for test services to
     187# exit. The reason for the wait is that Apache instances may take some
     188# time to exit and delete their PID files. Occasionally some PID files
     189# where still around during "distcheck" runs by the time the target
     190# checked if the build directory was really empty after "distclean",
     191# breaking the build. Delaying "clean-local" until PID files are gone
     192# avoids this issue, and the timeout will expose actually unclean
     193# stops.
    186194clean-local:
    187195        -rmdir $(identities) || true
     
    190198        -rmdir $(msva_home) || true
    191199endif
     200        wait=0; \
     201        while ls *.pid && test "$$wait" -lt "@TEST_LOCK_WAIT@"; do \
     202                wait=$$(($$wait + 1)); \
     203                echo "waiting for test services to exit ($$wait seconds)"; \
     204                sleep 1; \
     205        done
    192206
    193207# Apache configuration and data files
Note: See TracChangeset for help on using the changeset viewer.