[Bug 1423491] Re: Can't locate installed perl modules while executing the phone sanity tests

Martin Pitt martin.pitt at ubuntu.com
Thu Feb 19 12:10:17 UTC 2015


This works fine for me, with 3.9.6 (i.e. current vivid version). Can you
please run with --debug and give me the complete log output? This will
also include the autopkgtest version that you  used. Thanks!

** Changed in: autopkgtest (Ubuntu)
       Status: New => Incomplete

-- 
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:
  Incomplete

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