diff --git a/test-all.sh b/test-all.sh index 6e2ceb2de1..14b712d9b4 100755 --- a/test-all.sh +++ b/test-all.sh @@ -46,8 +46,18 @@ else echo "If a newer version of rustfmt is available, update this script." fi -banner $(python --version 2>&1) -$topdir/lib/cretonne/meta/check.sh +# Check if any Python files have changed since we last checked them. +tsfile=$topdir/target/meta-checked +if [ -f $tsfile ]; then + needcheck=$(find $topdir/lib/cretonne/meta -name '*.py' -newer $tsfile) +else + needcheck=yes +fi +if [ -n "$needcheck" ]; then + banner $(python --version 2>&1) + $topdir/lib/cretonne/meta/check.sh + touch $tsfile +fi PKGS="cretonne cretonne-reader cretonne-tools filecheck" cd "$topdir"