diff options
| -rw-r--r-- | meta/lib/oeqa/selftest/devtool.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/devtool.py b/meta/lib/oeqa/selftest/devtool.py index 2344fac5d8..1d16113343 100644 --- a/meta/lib/oeqa/selftest/devtool.py +++ b/meta/lib/oeqa/selftest/devtool.py | |||
| @@ -587,6 +587,16 @@ class DevtoolTests(oeSelfTest): | |||
| 587 | self.skipTest('This test only works with qemu machines') | 587 | self.skipTest('This test only works with qemu machines') |
| 588 | if not os.path.exists('/etc/runqemu-nosudo'): | 588 | if not os.path.exists('/etc/runqemu-nosudo'): |
| 589 | self.skipTest('You must set up tap devices with scripts/runqemu-gen-tapdevs before running this test') | 589 | self.skipTest('You must set up tap devices with scripts/runqemu-gen-tapdevs before running this test') |
| 590 | result = runCmd('PATH="$PATH:/sbin:/usr/sbin" ip tuntap show', ignore_status=True) | ||
| 591 | if result.status != 0: | ||
| 592 | result = runCmd('PATH="$PATH:/sbin:/usr/sbin" ifconfig -a', ignore_status=True) | ||
| 593 | if result.status != 0: | ||
| 594 | self.skipTest('Failed to determine if tap devices exist with ifconfig or ip: %s' % result.output) | ||
| 595 | for line in result.output.splitlines(): | ||
| 596 | if line.startswith('tap'): | ||
| 597 | break | ||
| 598 | else: | ||
| 599 | self.skipTest('No tap devices found - you must set up tap devices with scripts/runqemu-gen-tapdevs before running this test') | ||
| 590 | workspacedir = os.path.join(self.builddir, 'workspace') | 600 | workspacedir = os.path.join(self.builddir, 'workspace') |
| 591 | self.assertTrue(not os.path.exists(workspacedir), 'This test cannot be run with a workspace directory under the build directory') | 601 | self.assertTrue(not os.path.exists(workspacedir), 'This test cannot be run with a workspace directory under the build directory') |
| 592 | import pexpect | 602 | import pexpect |
