Message ID | 6943f17e-05bc-4370-a7ad-029268c6dbf3.txfh2007@aliyun.com |
---|---|
State | Superseded |
Headers | show |
Series | [ovs-dev] ovs-tcpdump: add dump_cmd checker before _doexec() | expand |
Bleep bloop. Greetings txfh2007 via dev, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: ERROR: Author should not be mailing list. Lines checked: 47, Warnings: 0, Errors: 1 Please check this out. If you feel there has been an error, please email aconole@bytheb.org Thanks, 0-day Robot
diff --git a/utilities/ovs-tcpdump.in b/utilities/ovs-tcpdump.in index 269c252f8..f28ecf5b2 100755 --- a/utilities/ovs-tcpdump.in +++ b/utilities/ovs-tcpdump.in @@ -416,6 +416,10 @@ def main(): print("Error: must at least specify an interface with '-i' option") sys.exit(1) + if os.system("command -v %s" % (dump_cmd)): + print("Error: %s is not installed !!"%dump_cmd) + sys.exit(1) + if '-l' not in tcpdargs: tcpdargs.insert(0, '-l')