mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 22:00:32 +01:00
contrib/rh-bkr: escape ARGV and ARGV_PROFILE
This commit is contained in:
parent
67ff6b44e6
commit
7a980c043b
1 changed files with 2 additions and 2 deletions
|
|
@ -545,8 +545,8 @@ class CmdSubmit(CmdBase):
|
|||
raise Exception("--nitrate-status or --nitrate-exclude-status makes only sense with selecting nitrate tags")
|
||||
|
||||
self.subs['TESTS'] = ','.join(sorted(set(tests)))
|
||||
self.subs['ARGV'] = ("\"" + "\" \"".join(sys.argv) + "\"") if sys.argv else ''
|
||||
self.subs['ARGV_PROFILE'] = ("\"" + "\" \"".join(self.argv_profile) + "\"") if hasattr(self, 'argv_profile') else ''
|
||||
self.subs['ARGV'] = ("\"" + "\" \"".join(sys.argv) + "\"").replace('"', '"') if sys.argv else ''
|
||||
self.subs['ARGV_PROFILE'] = ("\"" + "\" \"".join(self.argv_profile) + "\"").replace('"', '"') if hasattr(self, 'argv_profile') else ''
|
||||
|
||||
for (k,v) in self.subs.iteritems():
|
||||
self._print_substitution(k, v)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue