Created
October 10, 2016 21:31
-
-
Save apahim/20d7b73afc16486e9d74cb1249d02e22 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from avocado import Test | |
| from avocado.utils import process | |
| class TestTopology(Test): | |
| def setUp(self): | |
| script_name = 'cpu_topology.py' | |
| script_locations = ['https://gist.githubusercontent.com/apahim/' | |
| '361c9358c69c93b87e926d296b49368a/raw/' | |
| 'bb4514984fb690fef90eb7618df9c32c9e861d01/' | |
| 'cpu_topology.py'] | |
| self.script = self.fetch_asset(script_name, locations=script_locations) | |
| def test(self): | |
| result = process.run('python %s sockets' % self.script) | |
| self.assertEqual(int(result.stdout), 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment