fix(reliability): probe section existence via uci show, not an option key
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user