autobuild: add sleep to fix dependency test

With a reasonably fast machine, the full build can take less than a
second.

Make sure that at least one second has passed so the stat output will
differ when testing Makefile dependencies.

Change-Id: I462944d00c9c2ace2f6a1a7d6dadec4f77c25784
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2015-11-02 18:37:15 -07:00 committed by Gerrit Code Review
parent 70db0e1c08
commit f40e98d200

View File

@ -33,6 +33,7 @@ timing_exit scanbuild_make
# capturing a binary's stat data before and after touching a
# header file and re-making.
STAT1=`stat examples/nvme/identify/identify`
sleep 1
touch lib/nvme/nvme_internal.h
$MAKE $MAKEFLAGS DPDK_DIR=$DPDK_DIR $MAKECONFIG || fail=1
STAT2=`stat examples/nvme/identify/identify`