Comment 11 for bug 2002455

Revision history for this message
Tim Andersson (andersson123) wrote (last edit ):

Comments from another test, from this bug, regarding the architecture flag:
https://bugs.launchpad.net/ubuntu/+source/autopkgtest/+bug/2008026

"""
lxc launch ubuntu:jammy timscontainer
lxc exec timscontainer bash
sudo apt install autopkgtest
root@timscontainer:/home/ubuntu# apt list --installed | grep autopkgtest

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

autopkgtest/jammy-updates,now 5.20ubuntu1 all [installed]
root@timscontainer:/home/ubuntu# sudo autopkgtest --setup-commands="dpkg --add-architecture i386; apt-get update" --architecture i386 mawk -- qemu --ram-size=1536 --cpus 2 ./autopkgtest-jammy-amd64.img
usage: autopkgtest [options] [testbinary ...] testsrc -- virt-server [options]
autopkgtest: error: unrecognized arguments: --architecture

# install correct version
root@timscontainer:/home/ubuntu# apt list --installed | grep autopkgtest

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

autopkgtest/jammy-proposed,now 5.28ubuntu0.22.04.0 all [installed]

sudo autopkgtest --setup-commands="dpkg --add-architecture i386; apt-get update" --architecture i386 mawk -- qemu --ram-size=1536 --cpus 2 ./autopkgtest-jammy-amd64.img

Output:
testing function calls and general stress test
general stress test OK
tested mawk OK
autopkgtest [15:48:09]: test mawktest: -----------------------]
autopkgtest [15:48:10]: test mawktest: - - - - - - - - - - results - - - - - - - - - -
mawktest PASS
autopkgtest [15:48:11]: @@@@@@@@@@@@@@@@@@@@ summary
mawktest PASS
qemu-system-x86_64: terminating on signal 15 from pid 4345 (/usr/bin/python3)
"""