提交 9b6d179b 编写于 作者: L ltx 提交者: Gitee

ignore some file while checking kernel

上级 995f7e49
......@@ -152,7 +152,8 @@ class SystemTest(Test):
print("Error: could not determine if kernel is tainted.")
return_code = False
if not os.system("rpm -V --nomtime --nomode --nocontexts %s" % kernel_rpm) is 0:
except_list = ["/modules.dep$", "/modules.symbols$", "/modules.dep.bin$", "/modules.symbols.bin$"]
if os.system("rpm -V --nomtime --nomode --nocontexts %s | grep -Ev '%s'" % (kernel_rpm, "|".join(except_list))) is 0:
print("Error: files from %s were modified." % kernel_rpm)
print("")
return_code = False
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册