I understand. We launch test case on 2 different configurations (A and B).
If we detect config A some TC should not run so we have a simple condition like this:
if config == A:
Maybe there is a better solution but because we have a lot of cases we can't just put on the cmd which test cases should be ignore.
Maybe if we play with tags it can be better.