Some people do "make check" but never even try to run sage. Thus it is stupid that make check can run without ever verifying that sage-flags.txt is valid. If it isn't, just stop the check.
Component: doctest coverage
Issue created by migration from https://trac.sagemath.org/ticket/5045