rm_work being enabled when running certain tests within oe-selftest leads to those tests failing since the artifacts they are looking for in the sysroot aren't present after building as expected (as rm_work deletes those) - see bug 12655 and bug 12647. Along the lines of the other config checks in oe-selftest we should therefore show an error and exit immediately if the user has rm_work enabled.
Merged: https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=9f7923c7e0a8044239c5fd5b818aacbd4696b68a