Skip to content

freebsd-regression-test-suite: use comma-separated list for tests#21

Draft
svmhdvn wants to merge 1 commit intomarkjdb:master-pythonfrom
svmhdvn:push-kuwmrwmxrsqo
Draft

freebsd-regression-test-suite: use comma-separated list for tests#21
svmhdvn wants to merge 1 commit intomarkjdb:master-pythonfrom
svmhdvn:push-kuwmrwmxrsqo

Conversation

@svmhdvn
Copy link
Copy Markdown
Contributor

@svmhdvn svmhdvn commented Apr 6, 2026

This makes it so much easier to write tooling on top of bricoler, due to very complicated shell space quoting rules.

This makes it so much easier to write tooling on top of bricoler,
due to very complicated shell space quoting rules.
@markjdb
Copy link
Copy Markdown
Owner

markjdb commented Apr 6, 2026

I'm fine with it, but does this break any scripts using the old syntax? I think not?

@svmhdvn
Copy link
Copy Markdown
Contributor Author

svmhdvn commented Apr 6, 2026

No, because there are no tests with , in them.

@svmhdvn svmhdvn marked this pull request as draft April 6, 2026 15:34
@markjdb
Copy link
Copy Markdown
Owner

markjdb commented Apr 6, 2026

No, because there are no tests with , in them.

No I mean, if someone has a script which runs with --freebsd-regression-test-suite/tests="foo bar", it'll still work as before I think?

@svmhdvn
Copy link
Copy Markdown
Contributor Author

svmhdvn commented Apr 6, 2026

Sorry, never mind, it looks like there are 4+ tests with commas in them:

sys/netlink/test_rtnl_ifaddr.py:TestRtNlIfaddrOpsBroadcast::test_add_6_flags[autoconf,deprecated]  ->  passed  [0.290s] 

sys/netlink/test_rtnl_ifaddr.py:TestRtNlIfaddrOpsP2p::test_del[ifa_addr=addr,ifa_local=addr-ip6_dst_outside_128]  ->  passed  [0.325s] 

sys/netlink/test_rtnl_ifaddr.py:TestRtNlIfaddrOpsP2p::test_del[ifa_addr=addr,ifa_local=addr-ipv4_dst_inside_30]  ->  passed  [0.286s] 

sys/netlink/test_rtnl_ifaddr.py:TestRtNlIfaddrOpsP2p::test_del[ifa_addr=addr,ifa_local=addr-ipv4_dst_outside_32]  ->  passed  [0.297s]

I'll have to rethink this, in case someone wants to pass this in as a custom test.

@svmhdvn
Copy link
Copy Markdown
Contributor Author

svmhdvn commented Apr 6, 2026

No, because there are no tests with , in them.

No I mean, if someone has a script which runs with --freebsd-regression-test-suite/tests="foo bar", it'll still work as before I think?

Yes this has backwards compatibility as well, replace() will only replace commas.

@markjdb
Copy link
Copy Markdown
Owner

markjdb commented Apr 8, 2026

Sorry, never mind, it looks like there are 4+ tests with commas in them:

sys/netlink/test_rtnl_ifaddr.py:TestRtNlIfaddrOpsBroadcast::test_add_6_flags[autoconf,deprecated]  ->  passed  [0.290s] 

sys/netlink/test_rtnl_ifaddr.py:TestRtNlIfaddrOpsP2p::test_del[ifa_addr=addr,ifa_local=addr-ip6_dst_outside_128]  ->  passed  [0.325s] 

sys/netlink/test_rtnl_ifaddr.py:TestRtNlIfaddrOpsP2p::test_del[ifa_addr=addr,ifa_local=addr-ipv4_dst_inside_30]  ->  passed  [0.286s] 

sys/netlink/test_rtnl_ifaddr.py:TestRtNlIfaddrOpsP2p::test_del[ifa_addr=addr,ifa_local=addr-ipv4_dst_outside_32]  ->  passed  [0.297s]

I'll have to rethink this, in case someone wants to pass this in as a custom test.

What's your larger goal here? Maybe we can incorporate it more directly into bricoler somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants