1
0
mirror of synced 2026-03-28 02:23:16 +00:00

Testsuite: Optimize modules.sh

This commit is contained in:
Axel Beckert
2015-06-11 22:32:00 +02:00
parent a52d422ba8
commit 1d07f06953
2 changed files with 2 additions and 1 deletions

1
debian/changelog vendored
View File

@@ -13,6 +13,7 @@ xen-tools (4.5+dev-1) UNRELEASED; urgency=medium
thanks Jean-Michel Nirgal Vourgère for the bug report and patch!)
+ Testsuite: Let modules.sh ignore the .git directory. (t/modules.t
failed if a git commit message had a line starting with "use ".)
+ Testsuite: Optimize modules.sh.
+ Drop all occurrences of apt's --force-yes parameter. It only forces
the installation of untrusted packages and that's unwanted. (Closes:
#776487)

View File

@@ -25,7 +25,7 @@ use Test::More qw( no_plan );
EOF
for i in `grep '^use ' -r .. | egrep -v '^\./\.git/' | grep -v Expect | grep -v POSIX | grep -v Xen:: | awk '{print $2}' | tr -d
for i in `grep '^use ' -r .. | egrep -v '^\./\.git/|Expect|POSIX|Xen::' | awk '{print $2}' | tr -d '\r;()' | sort -u`; \
do \
echo "BEGIN{ use_ok( '$i' ); }"; \
echo "require_ok( '$i' );" ; \