[ Scott Moser ] > When merging Ubuntu's python-boto delta from Debian, we have 2 changes > that we're carrying, both represented in the attached diff. > > a.) run tests/test.py with each python in 'pyversions -i' > This seemed simply typo/oversite. debian/tests/unit was doing: > for python in $(pyversions -i) > tests/test.py unit > /dev/null; done > It didn't seem like there was any way that the expected python > would be used there. Instead, I changed it to run: > $python tests/test.py unit
Definitely an oversight, thanks for bringing to my attention! > b.) Corey Bryant made a change to debian/tests/test.py described as > "d/tests/unit: Fix autopkgtest error in test_timeout." . > Unfortunately I don't have more information on this. Interesting; I'm not seeing any errors, and I'd hate to add something like this without understanding what problem it is meant to solve. What's the best way for me to get more information on this? > === modified file 'debian/tests/unit' > --- debian/tests/unit 2014-03-30 12:36:49 +0000 > +++ debian/tests/unit 2014-07-28 19:20:40 +0000 > @@ -1,9 +1,23 @@ > #/bin/sh > > +set -ex > + > +#Create temporary home directory with .ssh/known_hosts file > +#so that test_timeout will be able to work. > +home_orig=$HOME > +home_temp=$(mktemp -d) > +mkdir -p "$home_temp/.ssh" > +touch "$home_temp/.ssh/known_hosts" > +export HOME=$home_temp > + > set -eu > cp -r tests "$ADTTMP/" > cd "$ADTTMP" > > for python in $(pyversions -i); do > - tests/test.py unit > /dev/null > + $python tests/test.py unit > /dev/null > done > + > +#Restore original home directory and remove temp home dir > +export HOME=$home_orig > +rm -rf $home_temp > -- Eric Evans eev...@sym-link.com
signature.asc
Description: PGP signature