check_patch.py: Avoid IndexError when checking git status

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
qemu.tests: Updates to smbios_table

Compare SMBIOS data among different machine types

This patch modify smbios_table, add smbios three smbios type
and machine type test(-M) support.

You can run smbios_table using "-smbios type=0" "-smbios type=1"
or both of them in test,and you can run test using diff machine type.

[V3] update base upstream, make all the option and command configurable.
[V4] modify some format problem

signed-off-by: Yunping Zheng <yunzheng@redhat.com>
Acked-by: Suqin Huang <shuang@redhat.com>

qemu.test: Make smbios_table to run on Fedora guests

Add a parameter to test the options not set on Fedora.
And fix the params error when extra_params is empty.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>