Skip to content

Commit

Permalink
CPU details may not be available in environment
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Marr <git@stefan-marr.de>
  • Loading branch information
smarr committed Jan 26, 2025
1 parent 09e8abb commit 2bd7e6d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rebench/tests/environment_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,17 @@ def test_environment(self):
self.assertGreater(len(env["userName"]), 0)
self.assertGreater(len(env["hostName"]), 0)
self.assertGreater(len(env["osType"]), 0)
self.assertGreater(len(env["cpu"]), 0)


self.assertTrue("manualRun" in env)
self.assertGreater(env["memory"], 0)
self.assertGreaterEqual(env["clockSpeed"], 0)

self.assertGreaterEqual(len(env["software"]), 3)

if "cpu" in env:
self.assertGreater(len(env["cpu"]), 0)
self.assertGreaterEqual(env["clockSpeed"], 0)

def test_extract_base(self):
self.assertEqual('', extract_base(''))
self.assertEqual('branch', extract_base('branch'))
Expand Down

0 comments on commit 2bd7e6d

Please sign in to comment.