Fail the tests that skipped at run time, naming what they miss, and give CI's tests docker
This commit is contained in:
@@ -25,7 +25,7 @@ from routing_figures.state import due
|
||||
from claude_code.entries import entry_from
|
||||
from failure import Failure
|
||||
from git_cli import git_repo
|
||||
from test_env import isolated_env
|
||||
from test_env import assert_not_root, isolated_env
|
||||
from plan.todo_table import Item
|
||||
from transcript_archive import outcomes, write
|
||||
from model_routing.ladder_file import read_ladder, SHIPPED
|
||||
@@ -495,8 +495,8 @@ class Archive(unittest.TestCase):
|
||||
self.assertIsNone(state.mark_raised(self.root, [a], "2026-10-15T02:00:00Z"))
|
||||
self.assertEqual(state.raised(self.root), state.Raised("2026-10-15T01:00:00Z", frozenset({a})))
|
||||
|
||||
@unittest.skipIf(os.geteuid() == 0, "root writes into a read-only directory")
|
||||
def test_fails_when_it_cannot_keep_the_state(self):
|
||||
assert_not_root(self)
|
||||
self.root.chmod(0o555)
|
||||
self.addCleanup(self.root.chmod, 0o755)
|
||||
self.assertIsInstance(state.mark_measured(self.root, 40), Failure)
|
||||
|
||||
Reference in New Issue
Block a user