Skip to content

Instantly share code, notes, and snippets.

@apahim
Created October 10, 2016 21:31
Show Gist options
  • Select an option

  • Save apahim/20d7b73afc16486e9d74cb1249d02e22 to your computer and use it in GitHub Desktop.

Select an option

Save apahim/20d7b73afc16486e9d74cb1249d02e22 to your computer and use it in GitHub Desktop.
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