Skip to content
Snippets Groups Projects
Commit da3f84c0 authored by Jan Čermák's avatar Jan Čermák
Browse files

fixed uci_get test helper

parent 32469a49
Branches
Tags
No related merge requests found
......@@ -6,8 +6,8 @@ def uci_get(path, config_directory=None):
if config_directory:
args.extend(["-c", config_directory])
args.append(path)
# crop "path.to.value=" and newline at the end
return check_output(args)[len(path)+1:-1]
# crop newline at the end
return check_output(args)[:-1]
def uci_set(path, value, config_directory=None):
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment