#1140787 sbuild: autopkgtest_virt_server_options setting is ignored

#1140787#5
Date:
2026-06-26 11:55:31 UTC
From:
To:
Dear Maintainer,

The autopkgtest_virt_server_options seems to be ignored:

$ sbuild --run-autopkgtest --no-run-lintian
[...]
autopkgtest [13:37:38]: [...]; command line: /usr/bin/autopkgtest [...]/tzdata_2026b-1_amd64.changes -- unshare --release unstable --arch amd64
```

According to my config `-b /dev/kvm /dev/kvm` should have been added or
am I holding it wrong?

I would expect that I could set the options specific to the virt server,
but I do not see that possibility in the config.

#1140787#10
Date:
2026-06-26 12:17:20 UTC
From:
To:
Hi Benjamin,

* Benjamin Drung <bdrung@debian.org> [2026-06-26 13:55]:

Note that $autopkgtest_virt_server_options is only used for
--chroot-mode=autopkgtest, not for --run-autopkgtest. I guess you want 
$autopkgtest_opts instead. Can you close this if I am correct?

Cheers Jochen

#1140787#15
Date:
2026-06-26 12:34:35 UTC
From:
To:
Then the comment for autopkgtest_virt_server_options is misleading:


Can this comment be clarified.

It would be nice if I could set autopkgtest-virt-* options per runner.
Should I file a new bug for that?

#1140787#20
Date:
2026-06-26 12:43:57 UTC
From:
To:
* Benjamin Drung <bdrung@debian.org> [2026-06-26 14:34]:

Can you propose a MR?

What do you mean by "per runner"? Maybe you mean something like
#1117678? (MRs welcome).

Btw. what is the different between this bug and  #1140786?

Cheers Jochen

#1140787#25
Date:
2026-06-29 15:37:31 UTC
From:
To:
Created https://salsa.debian.org/debian/sbuild/-/merge_requests/246

With "per runner" I meant autopkgtest virt-server. Bug #1117678 is
related, but a bit different.

That came from the same confusion. Let me close that one and start with
a fresh bug report explaining what I like to see.

#1140787#28
Date:
2026-06-29 15:52:59 UTC
From:
To:
Hello,

Bug #1140787 in sbuild reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/debian/sbuild/-/commit/d3d5ea204742c62e96be2687e6afcbd2f817588f
------------------------------------------------------------------------
man/sbuild.1.in: clarify --autopkgtest-virt-server* parameters

The `--autopkgtest-virt-server*` parameters are only relevant when using
`--chroot-mode=autopkgtest`. Mention that restriction in the man page to
avoid confusion.

Closes: #1140787
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1140787