clients/tests: fix wrongly constructing command line string as tuple in TestNmcli

It had no bad effect, but the cmd was a tuple with one string, and not
a string.
This commit is contained in:
Thomas Haller
2019-12-13 10:07:37 +01:00
parent 48225add3a
commit 52b89cb21b

View File

@@ -787,7 +787,7 @@ class TestNmcli(NmTestBase):
self.assertEqual(returncode, -5) self.assertEqual(returncode, -5)
if check_on_disk: if check_on_disk:
cmd = '$NMCLI %s' % (' '.join([Util.quote(a) for a in args[1:]])), cmd = '$NMCLI %s' % (' '.join([Util.quote(a) for a in args[1:]]))
content = ('location: %s\n' % (calling_location)).encode('utf8') + \ content = ('location: %s\n' % (calling_location)).encode('utf8') + \
('cmd: %s\n' % (cmd)).encode('utf8') + \ ('cmd: %s\n' % (cmd)).encode('utf8') + \