Browse Source

Skip the Python checks if the Python files haven't changed.

pull/3/head
Jakob Stoklund Olesen 8 years ago
parent
commit
6532cbab6c
  1. 14
      test-all.sh

14
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"

Loading…
Cancel
Save