mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Tests: Mining test uses a parametric path for finding the calculation app
MINING_SILENT and MINING_NO_MEASUREMENT env vars
This commit is contained in:
parent
0a1ddc2eff
commit
6799e212cc
3 changed files with 66 additions and 41 deletions
|
@ -43,8 +43,8 @@ def available_ram_gb():
|
|||
ram_gb = ram_bytes / kilo**3
|
||||
return ram_gb
|
||||
|
||||
def get_time_pi_seconds(cores):
|
||||
app_path = './cpu_power_test'
|
||||
def get_time_pi_seconds(cores, app_dir='.'):
|
||||
app_path = '{}/cpu_power_test'.format(app_dir)
|
||||
time_calc = subprocess.check_output([app_path, str(cores)])
|
||||
decoded = time_calc.decode('utf-8')
|
||||
miliseconds = int(decoded)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue