Package: autopkgtest Version: 5.22 Followup-For: Bug #1010338 Unfortunately the exception is also triggered for non-fatal errors:
$ cat debian/tests/control.crash Test-Command: /bin/true Depends: coreutils Restrictions: isolation-machine Test-Command: /bin/true Depends: coreutils $ autopkgtest --override-control=debian/tests/control.crash --test-name=command2 \ /tmp/coreutils_8.32-4.1_amd64.deb ./ -- schroot sid-amd64-sbuild […] command1 SKIP Test requires machine-level isolation but testbed does not provide that autopkgtest [00:05:45]: build not needed autopkgtest [00:05:45]: ERROR: unexpected error: Traceback (most recent call last): File "/usr/share/autopkgtest/lib/testdesc.py", line 675, in parse_debian_source test.check_testbed_compat(testbed_caps, ignore_restrictions) File "/usr/share/autopkgtest/lib/testdesc.py", line 171, in check_testbed_compat raise Unsupported(self.name, testdesc.Unsupported: Unsupported test command1: Test requires machine-level isolation but testbed does not provide that During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/autopkgtest", line 839, in main process_actions() File "/usr/bin/autopkgtest", line 763, in process_actions (tests, skipped) = testdesc.parse_debian_source( File "/usr/share/autopkgtest/lib/testdesc.py", line 681, in parse_debian_source if testname is None or n == testname: UnboundLocalError: local variable 'n' referenced before assignment Interestingly, it works without the --test-name: $ autopkgtest --override-control=debian/tests/control.crash \ /tmp/coreutils_8.32-4.1_amd64.deb ./ -- schroot sid-amd64-sbuild […] autopkgtest [00:12:45]: test command2: /bin/true autopkgtest [00:12:45]: test command2: [----------------------- autopkgtest [00:12:45]: test command2: -----------------------] autopkgtest [00:12:45]: test command2: - - - - - - - - - - results - - - - - - - - - - command2 PASS autopkgtest [00:12:45]: @@@@@@@@@@@@@@@@@@@@ summary command1 SKIP Test requires machine-level isolation but testbed does not provide that command1 SKIP Test requires machine-level isolation but testbed does not provide that command2 PASS But of course sometimes I have more than one test without ‘Restrictions: isolation-*’ and and want to run a single one at a time :-) -- Guilhem.
signature.asc
Description: PGP signature