Merge pull request #92 from LiliDeng/master

Update BVT-LAST-CONSOLE-CHECK.py
This commit is contained in:
lizzha 2015-10-22 12:23:43 +08:00
Родитель b4d51abf39 fea6695a9f
Коммит e538cff048
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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='")