Just thinking out loud (because I thought about a similar case in the past just for smoker): you can have an env var (like EXPECT_OSTREE) where missing means auto-detection, YES means failure if it isn't present and NO means failure if it is present.