0s autopkgtest [13:30:21]: starting date and time: 2024-06-27 13:30:21+0000 0s autopkgtest [13:30:21]: git checkout: 85adf9a1 setup-testbed: prevent /tmp from getting a tmpfs mount 0s autopkgtest [13:30:21]: host juju-7f2275-prod-proposed-migration-environment-3; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.fdgms342/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:importlib-resources --apt-upgrade importlib-resources --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=importlib-resources/6.4.0-1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-3@bos02-s390x-19.secgroup --name adt-oracular-s390x-importlib-resources-20240627-124639-juju-7f2275-prod-proposed-migration-environment-3-3554deb9-55ee-458b-a4b9-284bd2820d3b --image adt/ubuntu-oracular-s390x-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-3 --net-id=net_prod-proposed-migration -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 111s autopkgtest [13:32:12]: testbed dpkg architecture: s390x 111s autopkgtest [13:32:12]: testbed apt version: 2.9.5 111s autopkgtest [13:32:12]: @@@@@@@@@@@@@@@@@@@@ test bed setup 112s Get:1 http://ftpmaster.internal/ubuntu oracular-proposed InRelease [110 kB] 113s Get:2 http://ftpmaster.internal/ubuntu oracular-proposed/multiverse Sources [2576 B] 113s Get:3 http://ftpmaster.internal/ubuntu oracular-proposed/restricted Sources [7052 B] 113s Get:4 http://ftpmaster.internal/ubuntu oracular-proposed/main Sources [54.4 kB] 113s Get:5 http://ftpmaster.internal/ubuntu oracular-proposed/universe Sources [378 kB] 113s Get:6 http://ftpmaster.internal/ubuntu oracular-proposed/main s390x Packages [84.4 kB] 113s Get:7 http://ftpmaster.internal/ubuntu oracular-proposed/restricted s390x Packages [1860 B] 113s Get:8 http://ftpmaster.internal/ubuntu oracular-proposed/universe s390x Packages [347 kB] 113s Get:9 http://ftpmaster.internal/ubuntu oracular-proposed/multiverse s390x Packages [1768 B] 113s Fetched 987 kB in 1s (1188 kB/s) 113s Reading package lists... 115s Reading package lists... 115s Building dependency tree... 115s Reading state information... 116s Calculating upgrade... 116s The following packages will be upgraded: 116s cloud-init e2fsprogs e2fsprogs-l10n libcom-err2 libext2fs2t64 libss2 logsave 116s lsb-release sensible-utils tmux 116s 10 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 116s Need to get 2045 kB of archives. 116s After this operation, 23.6 kB disk space will be freed. 116s Get:1 http://ftpmaster.internal/ubuntu oracular/main s390x e2fsprogs-l10n all 1.47.1-1ubuntu1 [6798 B] 116s Get:2 http://ftpmaster.internal/ubuntu oracular/main s390x logsave s390x 1.47.1-1ubuntu1 [25.4 kB] 116s Get:3 http://ftpmaster.internal/ubuntu oracular/main s390x libext2fs2t64 s390x 1.47.1-1ubuntu1 [233 kB] 116s Get:4 http://ftpmaster.internal/ubuntu oracular/main s390x e2fsprogs s390x 1.47.1-1ubuntu1 [619 kB] 116s Get:5 http://ftpmaster.internal/ubuntu oracular/main s390x libcom-err2 s390x 1.47.1-1ubuntu1 [25.6 kB] 116s Get:6 http://ftpmaster.internal/ubuntu oracular/main s390x libss2 s390x 1.47.1-1ubuntu1 [17.9 kB] 116s Get:7 http://ftpmaster.internal/ubuntu oracular/main s390x sensible-utils all 0.0.24 [24.8 kB] 116s Get:8 http://ftpmaster.internal/ubuntu oracular/main s390x lsb-release all 12.1-1 [5910 B] 116s Get:9 http://ftpmaster.internal/ubuntu oracular/main s390x tmux s390x 3.4-7 [487 kB] 116s Get:10 http://ftpmaster.internal/ubuntu oracular/main s390x cloud-init all 24.2~5g8c396a4b-0ubuntu1 [599 kB] 117s Preconfiguring packages ... 117s Fetched 2045 kB in 1s (2963 kB/s) 117s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 54644 files and directories currently installed.) 117s Preparing to unpack .../e2fsprogs-l10n_1.47.1-1ubuntu1_all.deb ... 117s Unpacking e2fsprogs-l10n (1.47.1-1ubuntu1) over (1.47.0-2.4~exp1ubuntu4) ... 117s Preparing to unpack .../logsave_1.47.1-1ubuntu1_s390x.deb ... 117s Unpacking logsave (1.47.1-1ubuntu1) over (1.47.0-2.4~exp1ubuntu4) ... 117s Preparing to unpack .../libext2fs2t64_1.47.1-1ubuntu1_s390x.deb ... 117s Leaving 'diversion of /lib/s390x-linux-gnu/libe2p.so.2 to /lib/s390x-linux-gnu/libe2p.so.2.usr-is-merged by libext2fs2t64' 117s Leaving 'diversion of /lib/s390x-linux-gnu/libe2p.so.2.3 to /lib/s390x-linux-gnu/libe2p.so.2.3.usr-is-merged by libext2fs2t64' 117s Leaving 'diversion of /lib/s390x-linux-gnu/libext2fs.so.2 to /lib/s390x-linux-gnu/libext2fs.so.2.usr-is-merged by libext2fs2t64' 117s Leaving 'diversion of /lib/s390x-linux-gnu/libext2fs.so.2.4 to /lib/s390x-linux-gnu/libext2fs.so.2.4.usr-is-merged by libext2fs2t64' 117s Unpacking libext2fs2t64:s390x (1.47.1-1ubuntu1) over (1.47.0-2.4~exp1ubuntu4) ... 117s Setting up libext2fs2t64:s390x (1.47.1-1ubuntu1) ... 117s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 54644 files and directories currently installed.) 117s Preparing to unpack .../0-e2fsprogs_1.47.1-1ubuntu1_s390x.deb ... 117s Unpacking e2fsprogs (1.47.1-1ubuntu1) over (1.47.0-2.4~exp1ubuntu4) ... 117s Preparing to unpack .../1-libcom-err2_1.47.1-1ubuntu1_s390x.deb ... 117s Unpacking libcom-err2:s390x (1.47.1-1ubuntu1) over (1.47.0-2.4~exp1ubuntu4) ... 117s Preparing to unpack .../2-libss2_1.47.1-1ubuntu1_s390x.deb ... 117s Unpacking libss2:s390x (1.47.1-1ubuntu1) over (1.47.0-2.4~exp1ubuntu4) ... 117s Preparing to unpack .../3-sensible-utils_0.0.24_all.deb ... 117s Unpacking sensible-utils (0.0.24) over (0.0.23) ... 117s Preparing to unpack .../4-lsb-release_12.1-1_all.deb ... 117s Unpacking lsb-release (12.1-1) over (12.0-2) ... 117s Preparing to unpack .../5-tmux_3.4-7_s390x.deb ... 117s Unpacking tmux (3.4-7) over (3.4-6) ... 117s Preparing to unpack .../6-cloud-init_24.2~5g8c396a4b-0ubuntu1_all.deb ... 117s Unpacking cloud-init (24.2~5g8c396a4b-0ubuntu1) over (24.2~4g5f40426f-0ubuntu1) ... 117s Setting up cloud-init (24.2~5g8c396a4b-0ubuntu1) ... 117s Installing new version of config file /etc/cloud/cloud.cfg ... 119s Setting up libcom-err2:s390x (1.47.1-1ubuntu1) ... 119s Setting up libss2:s390x (1.47.1-1ubuntu1) ... 119s Setting up logsave (1.47.1-1ubuntu1) ... 119s Setting up sensible-utils (0.0.24) ... 119s Setting up lsb-release (12.1-1) ... 119s Setting up tmux (3.4-7) ... 119s Setting up e2fsprogs (1.47.1-1ubuntu1) ... 119s Installing new version of config file /etc/cron.d/e2scrub_all ... 119s Installing new version of config file /etc/mke2fs.conf ... 119s update-initramfs: deferring update (trigger activated) 119s Setting up e2fsprogs-l10n (1.47.1-1ubuntu1) ... 119s Processing triggers for rsyslog (8.2312.0-3ubuntu9) ... 120s Processing triggers for man-db (2.12.1-2) ... 120s Processing triggers for debianutils (5.19) ... 120s Processing triggers for libc-bin (2.39-0ubuntu9) ... 121s Processing triggers for initramfs-tools (0.142ubuntu28) ... 121s update-initramfs: Generating /boot/initrd.img-6.8.0-31-generic 121s W: No lz4 in /usr/bin:/sbin:/bin, using gzip 125s Using config file '/etc/zipl.conf' 125s Building bootmap in '/boot' 125s Adding IPL section 'ubuntu' (default) 125s Preparing boot device for LD-IPL: vda (0000). 125s Done. 125s Reading package lists... 125s Building dependency tree... 125s Reading state information... 125s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 126s Hit:1 http://ftpmaster.internal/ubuntu oracular-proposed InRelease 126s Hit:2 http://ftpmaster.internal/ubuntu oracular InRelease 126s Hit:3 http://ftpmaster.internal/ubuntu oracular-updates InRelease 126s Hit:4 http://ftpmaster.internal/ubuntu oracular-security InRelease 127s Reading package lists... 127s Reading package lists... 127s Building dependency tree... 127s Reading state information... 127s Calculating upgrade... 127s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 127s Reading package lists... 127s Building dependency tree... 127s Reading state information... 128s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 128s autopkgtest [13:32:29]: rebooting testbed after setup commands that affected boot 132s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 165s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 171s autopkgtest [13:33:12]: testbed running kernel: Linux 6.8.0-31-generic #31-Ubuntu SMP Sat Apr 20 00:14:26 UTC 2024 174s autopkgtest [13:33:15]: @@@@@@@@@@@@@@@@@@@@ apt-source importlib-resources 176s Get:1 http://ftpmaster.internal/ubuntu oracular-proposed/main importlib-resources 6.4.0-1 (dsc) [2320 B] 176s Get:2 http://ftpmaster.internal/ubuntu oracular-proposed/main importlib-resources 6.4.0-1 (tar) [42.0 kB] 176s Get:3 http://ftpmaster.internal/ubuntu oracular-proposed/main importlib-resources 6.4.0-1 (diff) [3528 B] 176s gpgv: Signature made Mon Jun 17 16:30:49 2024 UTC 176s gpgv: using RSA key 7E7729476D87D6F11D91ACCBC293E7B461825ACE 176s gpgv: Can't check signature: No public key 176s dpkg-source: warning: cannot verify inline signature for ./importlib-resources_6.4.0-1.dsc: no acceptable signature found 176s autopkgtest [13:33:17]: testing package importlib-resources version 6.4.0-1 176s autopkgtest [13:33:17]: build not needed 177s autopkgtest [13:33:18]: test command1: preparing testbed 178s Reading package lists... 178s Building dependency tree... 178s Reading state information... 178s Starting pkgProblemResolver with broken count: 0 178s Starting 2 pkgProblemResolver with broken count: 0 178s Done 178s The following additional packages will be installed: 178s python3-importlib-resources python3-iniconfig python3-packaging 178s python3-pluggy python3-pytest python3-zipp 178s The following NEW packages will be installed: 178s autopkgtest-satdep python3-importlib-resources python3-iniconfig 178s python3-packaging python3-pluggy python3-pytest python3-zipp 178s 0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded. 178s Need to get 406 kB/407 kB of archives. 178s After this operation, 1712 kB of additional disk space will be used. 178s Get:1 /tmp/autopkgtest.kTgBSc/1-autopkgtest-satdep.deb autopkgtest-satdep s390x 0 [724 B] 179s Get:2 http://ftpmaster.internal/ubuntu oracular/main s390x python3-zipp all 3.19.2-2 [10.2 kB] 179s Get:3 http://ftpmaster.internal/ubuntu oracular-proposed/main s390x python3-importlib-resources all 6.4.0-1 [22.6 kB] 179s Get:4 http://ftpmaster.internal/ubuntu oracular/universe s390x python3-iniconfig all 1.1.1-2 [6024 B] 179s Get:5 http://ftpmaster.internal/ubuntu oracular/main s390x python3-packaging all 24.0-1 [41.1 kB] 179s Get:6 http://ftpmaster.internal/ubuntu oracular/universe s390x python3-pluggy all 1.5.0-1 [21.0 kB] 179s Get:7 http://ftpmaster.internal/ubuntu oracular/universe s390x python3-pytest all 7.4.4-1 [305 kB] 179s Fetched 406 kB in 1s (803 kB/s) 179s Selecting previously unselected package python3-zipp. 179s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 54644 files and directories currently installed.) 179s Preparing to unpack .../0-python3-zipp_3.19.2-2_all.deb ... 179s Unpacking python3-zipp (3.19.2-2) ... 179s Selecting previously unselected package python3-importlib-resources. 179s Preparing to unpack .../1-python3-importlib-resources_6.4.0-1_all.deb ... 179s Unpacking python3-importlib-resources (6.4.0-1) ... 179s Selecting previously unselected package python3-iniconfig. 179s Preparing to unpack .../2-python3-iniconfig_1.1.1-2_all.deb ... 179s Unpacking python3-iniconfig (1.1.1-2) ... 179s Selecting previously unselected package python3-packaging. 179s Preparing to unpack .../3-python3-packaging_24.0-1_all.deb ... 179s Unpacking python3-packaging (24.0-1) ... 179s Selecting previously unselected package python3-pluggy. 179s Preparing to unpack .../4-python3-pluggy_1.5.0-1_all.deb ... 179s Unpacking python3-pluggy (1.5.0-1) ... 179s Selecting previously unselected package python3-pytest. 179s Preparing to unpack .../5-python3-pytest_7.4.4-1_all.deb ... 179s Unpacking python3-pytest (7.4.4-1) ... 179s Selecting previously unselected package autopkgtest-satdep. 179s Preparing to unpack .../6-1-autopkgtest-satdep.deb ... 179s Unpacking autopkgtest-satdep (0) ... 179s Setting up python3-iniconfig (1.1.1-2) ... 179s Setting up python3-zipp (3.19.2-2) ... 180s Setting up python3-packaging (24.0-1) ... 180s Setting up python3-pluggy (1.5.0-1) ... 180s Setting up python3-importlib-resources (6.4.0-1) ... 180s Setting up python3-pytest (7.4.4-1) ... 180s Setting up autopkgtest-satdep (0) ... 180s Processing triggers for man-db (2.12.1-2) ... 183s (Reading database ... 54892 files and directories currently installed.) 183s Removing autopkgtest-satdep (0) ... 183s autopkgtest [13:33:24]: test command1: cd /usr/lib/python3/dist-packages/importlib_resources && pytest --pyargs importlib_resources 183s autopkgtest [13:33:24]: test command1: [----------------------- 184s ============================= test session starts ============================== 184s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 184s rootdir: /usr/lib/python3/dist-packages/importlib_resources 184s collected 200 items 184s 184s tests/test_compatibilty_files.py ................ [ 8%] 184s tests/test_contents.py ... [ 9%] 184s tests/test_custom.py . [ 10%] 184s tests/test_files.py ...................... [ 21%] 184s tests/test_functional.py ....F..F.....F..F. [ 30%] 184s tests/test_open.py ........................................ [ 50%] 184s tests/test_path.py ............. [ 56%] 184s tests/test_read.py .................................... [ 74%] 184s tests/test_reader.py ............... [ 82%] 184s tests/test_resource.py .................s.................. [100%] 184s 184s =================================== FAILURES =================================== 184s ________________ FunctionalAPITest_StringAnchor.test_open_text _________________ 184s 184s self = 184s 184s def test_open_text(self): 184s with resources.open_text(self.anchor01, 'utf-8.file') as f: 184s self.assertEqual(f.read(), 'Hello, UTF-8 world!\n') 184s for path_parts in self._gen_resourcetxt_path_parts(): 184s with resources.open_text( 184s self.anchor02, 184s *path_parts, 184s encoding='utf-8', 184s ) as f: 184s self.assertEqual(f.read(), 'a resource') 184s # Use generic OSError, since e.g. attempting to read a directory can 184s # fail with PermissionError rather than IsADirectoryError 184s with self.assertRaises(OSError): 184s resources.open_text(self.anchor01) 184s with self.assertRaises(OSError): 184s resources.open_text(self.anchor01, 'no-such-file') 184s with resources.open_text(self.anchor01, 'utf-16.file') as f: 184s with self.assertRaises(UnicodeDecodeError): 184s f.read() 184s with resources.open_text( 184s self.anchor01, 184s 'binary.file', 184s encoding='latin1', 184s ) as f: 184s self.assertEqual(f.read(), '\x00\x01\x02\x03') 184s with resources.open_text( 184s self.anchor01, 184s 'utf-16.file', 184s errors='backslashreplace', 184s ) as f: 184s > self.assertEqual( 184s f.read(), 184s 'Hello, UTF-16 world!\n'.encode('utf-16').decode( 184s errors='backslashreplace', 184s ), 184s ) 184s E AssertionError: '\\xff\\xfeH\x00e\x00l\x00l\x00o\x00,\x00 \x00[67 chars]\x00' != '\\xfe\\xff\x00H\x00e\x00l\x00l\x00o\x00,\x00 [67 chars]00\n' 184s E - \xff\xfeHE ? ^^^^ 184s E + \xfe\xffE ? ++++ ^ 184s E - E + 184s 184s tests/test_functional.py:131: AssertionError 184s ________________ FunctionalAPITest_StringAnchor.test_read_text _________________ 184s 184s self = 184s 184s def test_read_text(self): 184s self.assertEqual( 184s resources.read_text(self.anchor01, 'utf-8.file'), 184s 'Hello, UTF-8 world!\n', 184s ) 184s self.assertEqual( 184s resources.read_text( 184s self.anchor02, 184s 'subdirectory', 184s 'subsubdir', 184s 'resource.txt', 184s encoding='utf-8', 184s ), 184s 'a resource', 184s ) 184s for path_parts in self._gen_resourcetxt_path_parts(): 184s self.assertEqual( 184s resources.read_text( 184s self.anchor02, 184s *path_parts, 184s encoding='utf-8', 184s ), 184s 'a resource', 184s ) 184s # Use generic OSError, since e.g. attempting to read a directory can 184s # fail with PermissionError rather than IsADirectoryError 184s with self.assertRaises(OSError): 184s resources.read_text(self.anchor01) 184s with self.assertRaises(OSError): 184s resources.read_text(self.anchor01, 'no-such-file') 184s with self.assertRaises(UnicodeDecodeError): 184s resources.read_text(self.anchor01, 'utf-16.file') 184s self.assertEqual( 184s resources.read_text( 184s self.anchor01, 184s 'binary.file', 184s encoding='latin1', 184s ), 184s '\x00\x01\x02\x03', 184s ) 184s > self.assertEqual( 184s resources.read_text( 184s self.anchor01, 184s 'utf-16.file', 184s errors='backslashreplace', 184s ), 184s 'Hello, UTF-16 world!\n'.encode('utf-16').decode( 184s errors='backslashreplace', 184s ), 184s ) 184s E AssertionError: '\\xff\\xfeH\x00e\x00l\x00l\x00o\x00,\x00 \x00[67 chars]\x00' != '\\xfe\\xff\x00H\x00e\x00l\x00l\x00o\x00,\x00 [67 chars]00\n' 184s E - \xff\xfeHE ? ^^^^ 184s E + \xfe\xffE ? ++++ ^ 184s E - E + 184s 184s tests/test_functional.py:79: AssertionError 184s ________________ FunctionalAPITest_ModuleAnchor.test_open_text _________________ 184s 184s self = 184s 184s def test_open_text(self): 184s with resources.open_text(self.anchor01, 'utf-8.file') as f: 184s self.assertEqual(f.read(), 'Hello, UTF-8 world!\n') 184s for path_parts in self._gen_resourcetxt_path_parts(): 184s with resources.open_text( 184s self.anchor02, 184s *path_parts, 184s encoding='utf-8', 184s ) as f: 184s self.assertEqual(f.read(), 'a resource') 184s # Use generic OSError, since e.g. attempting to read a directory can 184s # fail with PermissionError rather than IsADirectoryError 184s with self.assertRaises(OSError): 184s resources.open_text(self.anchor01) 184s with self.assertRaises(OSError): 184s resources.open_text(self.anchor01, 'no-such-file') 184s with resources.open_text(self.anchor01, 'utf-16.file') as f: 184s with self.assertRaises(UnicodeDecodeError): 184s f.read() 184s with resources.open_text( 184s self.anchor01, 184s 'binary.file', 184s encoding='latin1', 184s ) as f: 184s self.assertEqual(f.read(), '\x00\x01\x02\x03') 184s with resources.open_text( 184s self.anchor01, 184s 'utf-16.file', 184s errors='backslashreplace', 184s ) as f: 184s > self.assertEqual( 184s f.read(), 184s 'Hello, UTF-16 world!\n'.encode('utf-16').decode( 184s errors='backslashreplace', 184s ), 184s ) 184s E AssertionError: '\\xff\\xfeH\x00e\x00l\x00l\x00o\x00,\x00 \x00[67 chars]\x00' != '\\xfe\\xff\x00H\x00e\x00l\x00l\x00o\x00,\x00 [67 chars]00\n' 184s E - \xff\xfeHE ? ^^^^ 184s E + \xfe\xffE ? ++++ ^ 184s E - E + 184s 184s tests/test_functional.py:131: AssertionError 184s ________________ FunctionalAPITest_ModuleAnchor.test_read_text _________________ 184s 184s self = 184s 184s def test_read_text(self): 184s self.assertEqual( 184s resources.read_text(self.anchor01, 'utf-8.file'), 184s 'Hello, UTF-8 world!\n', 184s ) 184s self.assertEqual( 184s resources.read_text( 184s self.anchor02, 184s 'subdirectory', 184s 'subsubdir', 184s 'resource.txt', 184s encoding='utf-8', 184s ), 184s 'a resource', 184s ) 184s for path_parts in self._gen_resourcetxt_path_parts(): 184s self.assertEqual( 184s resources.read_text( 184s self.anchor02, 184s *path_parts, 184s encoding='utf-8', 184s ), 184s 'a resource', 184s ) 184s # Use generic OSError, since e.g. attempting to read a directory can 184s # fail with PermissionError rather than IsADirectoryError 184s with self.assertRaises(OSError): 184s resources.read_text(self.anchor01) 184s with self.assertRaises(OSError): 184s resources.read_text(self.anchor01, 'no-such-file') 184s with self.assertRaises(UnicodeDecodeError): 184s resources.read_text(self.anchor01, 'utf-16.file') 184s self.assertEqual( 184s resources.read_text( 184s self.anchor01, 184s 'binary.file', 184s encoding='latin1', 184s ), 184s '\x00\x01\x02\x03', 184s ) 184s > self.assertEqual( 184s resources.read_text( 184s self.anchor01, 184s 'utf-16.file', 184s errors='backslashreplace', 184s ), 184s 'Hello, UTF-16 world!\n'.encode('utf-16').decode( 184s errors='backslashreplace', 184s ), 184s ) 184s E AssertionError: '\\xff\\xfeH\x00e\x00l\x00l\x00o\x00,\x00 \x00[67 chars]\x00' != '\\xfe\\xff\x00H\x00e\x00l\x00l\x00o\x00,\x00 [67 chars]00\n' 184s E - \xff\xfeHE ? ^^^^ 184s E + \xfe\xffE ? ++++ ^ 184s E - E + 184s 184s tests/test_functional.py:79: AssertionError 184s =============================== warnings summary =============================== 184s ../_pytest/cacheprovider.py:451 184s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/importlib_resources/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/importlib_resources/.pytest_cache' 184s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 184s 184s ../_pytest/cacheprovider.py:405 184s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:405: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/importlib_resources/.pytest_cache/v/cache/lastfailed: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/importlib_resources/.pytest_cache' 184s config.cache.set("cache/lastfailed", self.lastfailed) 184s 184s ../_pytest/stepwise.py:56 184s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/importlib_resources/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/importlib_resources/.pytest_cache' 184s session.config.cache.set(STEPWISE_CACHE_DIR, []) 184s 184s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 184s =========================== short test summary info ============================ 184s FAILED tests/test_functional.py::FunctionalAPITest_StringAnchor::test_open_text 184s FAILED tests/test_functional.py::FunctionalAPITest_StringAnchor::test_read_text 184s FAILED tests/test_functional.py::FunctionalAPITest_ModuleAnchor::test_open_text 184s FAILED tests/test_functional.py::FunctionalAPITest_ModuleAnchor::test_read_text 184s ============= 4 failed, 195 passed, 1 skipped, 3 warnings in 0.51s ============= 185s autopkgtest [13:33:26]: test command1: -----------------------] 185s autopkgtest [13:33:26]: test command1: - - - - - - - - - - results - - - - - - - - - - 185s command1 FAIL non-zero exit status 1 185s autopkgtest [13:33:26]: test autodep8-python3: preparing testbed 958s nova [W] Using flock in scalingstack-bos02-s390x 958s Creating nova instance adt-oracular-s390x-importlib-resources-20240627-124639-juju-7f2275-prod-proposed-migration-environment-3-3554deb9-55ee-458b-a4b9-284bd2820d3b from image adt/ubuntu-oracular-s390x-server-20240626.img (UUID 6bf5ce7a-dd6e-44f9-86c3-45480965cb27)... 958s nova [W] Using flock in scalingstack-bos02-s390x 958s Creating nova instance adt-oracular-s390x-importlib-resources-20240627-124639-juju-7f2275-prod-proposed-migration-environment-3-3554deb9-55ee-458b-a4b9-284bd2820d3b from image adt/ubuntu-oracular-s390x-server-20240626.img (UUID 6bf5ce7a-dd6e-44f9-86c3-45480965cb27)... 958s nova [E] Timed out waiting for ssh. Aborting! Console log: 958s ------- nova console-log 469583bb-c2b0-4514-9f6d-aec5e4c0d055 (adt-oracular-s390x-importlib-resources-20240627-124639-juju-7f2275-prod-proposed-migration-environment-3-3554deb9-55ee-458b-a4b9-284bd2820d3b) ------ 958s 958s 958s Ubuntu Oracular Oriole (development branch) auto-syncubuntu-oracular-daily-s390x-server-20240622-disk1 sclp_line0 958s 958s auto-syncubuntu-oracular-daily-s390x-server-20240622-disk1 login: 958s --------------------------------------------------- 958s ------- nova show 469583bb-c2b0-4514-9f6d-aec5e4c0d055 (adt-oracular-s390x-importlib-resources-20240627-124639-juju-7f2275-prod-proposed-migration-environment-3-3554deb9-55ee-458b-a4b9-284bd2820d3b) ------ 958s +--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ 958s | Property | Value | 958s +--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ 958s | OS-DCF:diskConfig | MANUAL | 958s | OS-EXT-AZ:availability_zone | nova | 958s | OS-EXT-SRV-ATTR:host | s0lp4 | 958s | OS-EXT-SRV-ATTR:hypervisor_hostname | s0lp4.internal | 958s | OS-EXT-SRV-ATTR:instance_name | instance-039299d9 | 958s | OS-EXT-STS:power_state | 1 | 958s | OS-EXT-STS:task_state | - | 958s | OS-EXT-STS:vm_state | active | 958s | OS-SRV-USG:launched_at | 2024-06-27T13:34:22.000000 | 958s | OS-SRV-USG:terminated_at | - | 958s | accessIPv4 | | 958s | accessIPv6 | | 958s | config_drive | | 958s | created | 2024-06-27T13:34:10Z | 958s | flavor | autopkgtest (aea8bb59-2c51-4a96-9fea-89fe8bfe1807) | 958s | hostId | 45c407a6370073f072fc706956c64253b8b3a60969ea6fd241f4003e | 958s | id | 469583bb-c2b0-4514-9f6d-aec5e4c0d055 | 958s | image | adt/ubuntu-oracular-s390x-server-20240626.img (6bf5ce7a-dd6e-44f9-86c3-45480965cb27) | 958s | key_name | testbed-juju-7f2275-prod-proposed-migration-environment-3 | 958s | metadata | {} | 958s | name | adt-oracular-s390x-importlib-resources-20240627-124639-juju-7f2275-prod-proposed-migration-environment-3-3554deb9-55ee-458b-a4b9-284bd2820d3b | 958s | net_prod-proposed-migration network | 10.44.124.149 | 958s | os-extended-volumes:volumes_attached | [] | 958s | progress | 0 | 958s | security_groups | autopkgtest-juju-7f2275-prod-proposed-migration-environment-3@bos02-s390x-19.secgroup | 958s | status | ACTIVE | 958s | tenant_id | d3e6dd4ab017451f9860efb1b8e773cb | 958s | updated | 2024-06-27T13:34:23Z | 958s | user_id | 11a2bc788fe343dfa74314a2f55c80e0 | 958s +--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ 958s --------------------------------------------------- 1136s ------- nova console-log 7efa8a38-1c0a-4436-95c8-e8f7ad815d27 (adt-oracular-s390x-importlib-resources-20240627-124639-juju-7f2275-prod-proposed-migration-environment-3-3554deb9-55ee-458b-a4b9-284bd2820d3b) ------ 1136s ERROR (CommandError): No server with a name or ID of '7efa8a38-1c0a-4436-95c8-e8f7ad815d27' exists. 1136s --------------------------------------------------- 1136s ------- nova show 7efa8a38-1c0a-4436-95c8-e8f7ad815d27 (adt-oracular-s390x-importlib-resources-20240627-124639-juju-7f2275-prod-proposed-migration-environment-3-3554deb9-55ee-458b-a4b9-284bd2820d3b) ------ 1136s ERROR (CommandError): No server with a name or ID of '7efa8a38-1c0a-4436-95c8-e8f7ad815d27' exists. 1136s --------------------------------------------------- 1136s ERROR (CommandError): Unable to delete the specified server(s). 1136s : failure: setup script failed with code 1: /home/ubuntu/autopkgtest/ssh-setup/nova revert --flavor autopkgtest --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-3@bos02-s390x-19.secgroup --name adt-oracular-s390x-importlib-resources-20240627-124639-juju-7f2275-prod-proposed-migration-environment-3-3554deb9-55ee-458b-a4b9-284bd2820d3b --image adt/ubuntu-oracular-s390x-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-3 --net-id=net_prod-proposed-migration -e TERM=linux -e 'http_proxy=http://squid.internal:3128' -e 'https_proxy=http://squid.internal:3128' -e 'no_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com' --mirror=http://ftpmaster.internal/ubuntu/ --uuid 7efa8a38-1c0a-4436-95c8-e8f7ad815d27 1136s autopkgtest [13:49:17]: ERROR: testbed failure: unexpected eof from the testbed