Ah, my problem was case sensitivity. My test case used a tag "NOTREADY". But, pybot ignored it when I
used the same case. Using lower case on the command line works.
$ cat doesSkipWork.txt
*** Settings ***
*** Test Case ***
This test should run
[Tags] READY
Log Running test case run
This test should not run
[Tags] NOTREADY
Log Running test case skip
$ sudo pybot --exclude notready doesSkipWork.txt
==============================================================================
doesSkipWork
==============================================================================
This test should run | PASS |
------------------------------------------------------------------------------
doesSkipWork | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==============================================================================
$ sudo pybot --exclude NOTREADY doesSkipWork.txt
==============================================================================
doesSkipWork
==============================================================================
This test should run | PASS |
------------------------------------------------------------------------------
This test should not run | PASS |
------------------------------------------------------------------------------
doesSkipWork | PASS |
2 critical tests, 2 passed, 0 failed
2 tests total, 2 passed, 0 failed
==============================================================================