autotest/tp-qemu — pull request #75 by ypu (2014-04-16 08:46:23+00:00)
Title: generic.tests: Update the method get ncpu from server

Sometime the output from server include some unexpect letters include
some numbers. So the old method will failed to get the correct cpu
number.

The failed case logs from our test:
/netperf.py", line 426, in count_interrupt
intr += int(stat.split()[cpu + 1])
ValueError: invalid literal for int() with base 10: 'PCI-MSI-edge'

The output of command try to get ncpu:
2014-02-07 22:03:18: cat /proc/cpuinfo |grep processor |w