Merge pull request #92 from LiliDeng/master
Update BVT-LAST-CONSOLE-CHECK.py
This commit is contained in:
Коммит
e538cff048
|
@ -6,7 +6,7 @@ def RunTest(command):
|
|||
UpdateState("TestRunning")
|
||||
RunLog.info("Checking for last console as console=ttys0 in kernel boot line.")
|
||||
output = Run(command)
|
||||
if (output and output.rfind("console=") == output.rfind("console=ttyS0")) :
|
||||
if (output and output.rfind(" console=") == output.rfind(" console=ttyS0")) :
|
||||
RunLog.info('console=ttys0 is present in kernel boot line as a last console. \nOutput:' + output)
|
||||
ResultLog.info('PASS')
|
||||
UpdateState("TestCompleted")
|
||||
|
@ -15,4 +15,4 @@ def RunTest(command):
|
|||
ResultLog.error('FAIL')
|
||||
UpdateState("TestCompleted")
|
||||
|
||||
RunTest("dmesg | grep -i 'Kernel command line' | grep -i console=")
|
||||
RunTest("dmesg | grep -i 'Kernel command line' | grep -i ' console='")
|
||||
|
|
Загрузка…
Ссылка в новой задаче