fix(reliability): probe section existence via uci show, not an option key

This commit is contained in:
2026-08-22 18:59:57 -06:00
parent 1133068a09
commit 55d4beb9d4
3 changed files with 12 additions and 8 deletions
+1 -2
View File
@@ -109,8 +109,7 @@ class SectionRecreateTest(unittest.TestCase):
def fake_run(args, timeout=20, input_data=None):
a = list(args)
self.calls.append(a)
if a[:4] == ['uci', '-q', 'get',
'pineapd.@pineapd[0].logrecon']:
if a[:3] == ['uci', '-q', 'show']:
return (1, '', '') # section missing
if a[:2] == ['uci', 'get']:
got = self.uci.get(a[2])