mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Privileged Actions can take option lists again.
This commit is contained in:
1 parent
7f3b1a62c8
commit
0539dfb28a
2 files changed
+12
-14
No files matched your search
@@ -109,11 +109,10 @@ class TestPrivileged(unittest.TestCase):
|
||||
# counting is safer than actual badness.
|
||||
options = ["good", ";", "echo $((1+1))"]
|
||||
|
||||
with self.assertRaises(ValueError):
|
||||
output, error = privilegedaction_run(action, options)
|
||||
output, error = privilegedaction_run(action, options)
|
||||
|
||||
# if it somehow doesn't error, we'd better not evaluate the data.
|
||||
self.assertFalse("2" in output)
|
||||
# we'd better not evaluate the data.
|
||||
self.assertFalse("2" in output)
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user