This is a useful shorthand when generating SWHIDs in tests.
Migrated from D5160 (view on Phabricator)