Testsuite: Optimize modules.sh
This commit is contained in:
1
debian/changelog
vendored
1
debian/changelog
vendored
@@ -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)
|
||||
|
||||
@@ -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' );" ; \
|
||||
|
||||
Reference in New Issue
Block a user