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 Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1423491 Title: Can't locate installed perl modules while executing the phone sanity tests To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/autopkgtest/+bug/1423491/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs