Skip to content

Commit

Permalink
Fixed cmaconfig test w/older versions of jsonlint
Browse files Browse the repository at this point in the history
Older versions of pylint didn't support the - argument. Sigh...
  • Loading branch information
Alan-R committed Jan 2, 2016
1 parent b94e913 commit 605d84c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cma/cmaconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ def agent_params(config, agenttype, agentname, dronedesignation):
# Make sure it's making correct JSON...
pyConfigContext(str(cf.complete_config()))
#print 'Complete config:', cf.complete_config() # also checks for validity
lint = subprocess.Popen(('/usr/bin/jsonlint', '-f', '-'), stdin=subprocess.PIPE)
lint = subprocess.Popen(('/usr/bin/jsonlint', '-f'), stdin=subprocess.PIPE)
print >> lint.stdin, '%s\n' % cf.complete_config()
lint.stdin.close()
assert lint.wait() == 0

0 comments on commit 605d84c

Please sign in to comment.