[Bug 1423491] [NEW] Can't locate installed perl modules while executing the phone sanity tests
Federico Gimenez
fgimenez at canonical.com
Thu Feb 19 10:03:59 UTC 2015
Public bug reported:
When executing the sanity tests on the phone with a command like:
adt-run --timeout-short=600 -B --unbuilt-tree=$PWD --output-dir
~/workspace/ust --copy ~/.config/ubuntu-sanity-
tests.conf:/home/phablet/.config/ubuntu-sanity-tests.conf --setup-
commands 'mount -o remount,rw /' --setup-commands 'apt-add-repository -y
ppa:canonical-platform-qa/selenium' --setup-commands 'apt-get --no-list-
cleanup update -o Dir::Etc::SourceList=/dev/null' --setup-commands
'sync; sleep 2; mount -o remount,ro /' --- ssh -s adb -- -p 0000
I'm getting the error:
Can't locate Dpkg.pm in @INC (you may need to install the Dpkg module)
(@INC contains: /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.1
/usr/local/share/perl/5.20.1 /usr/lib/arm-linux-gnueabihf/perl5/5.20
/usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20
/usr/share/perl/5.20 /usr/local/lib/site_perl .) at /tmp/adt-
run.fhCiGm/deps/usr/bin/dpkg-architecture line 25.
The tests use the perl script 'dpkg-architecture', which depends on the
Dpkg perl module. dpkg-architecture is pulled by the dpkg-dev package,
which depends on libdpkg-perl, the later installs the Dpkg perl module
under the deps directory (in the previous example, /tmp/adt-
run.fhCiGm/deps/usr/share/perl5), but this is not by default in the @INC
paths for perl scripts.
As a workaround, setting the PERL5LIB environment variable to /tmp/adt-
run.fhCiGm/deps/usr/share/perl5 seems to solve the issue.
Thanks!
** Affects: autopkgtest (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to autopkgtest in Ubuntu.
https://bugs.launchpad.net/bugs/1423491
Title:
Can't locate installed perl modules while executing the phone sanity
tests
Status in autopkgtest package in Ubuntu:
New
Bug description:
When executing the sanity tests on the phone with a command like:
adt-run --timeout-short=600 -B --unbuilt-tree=$PWD --output-dir
~/workspace/ust --copy ~/.config/ubuntu-sanity-
tests.conf:/home/phablet/.config/ubuntu-sanity-tests.conf --setup-
commands 'mount -o remount,rw /' --setup-commands 'apt-add-repository
-y ppa:canonical-platform-qa/selenium' --setup-commands 'apt-get --no-
list-cleanup update -o Dir::Etc::SourceList=/dev/null' --setup-
commands 'sync; sleep 2; mount -o remount,ro /' --- ssh -s adb -- -p
0000
I'm getting the error:
Can't locate Dpkg.pm in @INC (you may need to install the Dpkg module)
(@INC contains: /etc/perl /usr/local/lib/arm-linux-
gnueabihf/perl/5.20.1 /usr/local/share/perl/5.20.1 /usr/lib/arm-linux-
gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-
gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .)
at /tmp/adt-run.fhCiGm/deps/usr/bin/dpkg-architecture line 25.
The tests use the perl script 'dpkg-architecture', which depends on
the Dpkg perl module. dpkg-architecture is pulled by the dpkg-dev
package, which depends on libdpkg-perl, the later installs the Dpkg
perl module under the deps directory (in the previous example, /tmp
/adt-run.fhCiGm/deps/usr/share/perl5), but this is not by default in
the @INC paths for perl scripts.
As a workaround, setting the PERL5LIB environment variable to /tmp
/adt-run.fhCiGm/deps/usr/share/perl5 seems to solve the issue.
Thanks!
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autopkgtest/+bug/1423491/+subscriptions
More information about the foundations-bugs
mailing list