diff options
Diffstat (limited to 'meta/lib/oeqa')
| -rw-r--r-- | meta/lib/oeqa/utils/commands.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py index e049e1ee68..9154220968 100644 --- a/meta/lib/oeqa/utils/commands.py +++ b/meta/lib/oeqa/utils/commands.py | |||
| @@ -405,13 +405,11 @@ def runqemu_check_taps(): | |||
| 405 | """Check if tap devices for runqemu are available""" | 405 | """Check if tap devices for runqemu are available""" |
| 406 | if not os.path.exists('/etc/runqemu-nosudo'): | 406 | if not os.path.exists('/etc/runqemu-nosudo'): |
| 407 | return False | 407 | return False |
| 408 | result = runCmd('PATH="$PATH:/sbin:/usr/sbin" ip tuntap show', ignore_status=True) | 408 | result = runCmd('PATH="$PATH:/sbin:/usr/sbin" ip tuntap show mode tap', ignore_status=True) |
| 409 | if result.status != 0: | 409 | if result.status != 0: |
| 410 | result = runCmd('PATH="$PATH:/sbin:/usr/sbin" ifconfig -a', ignore_status=True) | 410 | return False |
| 411 | if result.status != 0: | ||
| 412 | return False | ||
| 413 | for line in result.output.splitlines(): | 411 | for line in result.output.splitlines(): |
| 414 | if line.startswith('tap'): | 412 | if 'tap' in line: |
| 415 | break | 413 | break |
| 416 | else: | 414 | else: |
| 417 | return False | 415 | return False |
