diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2021-05-12 16:56:28 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2021-05-12 16:56:28 -0500 |
| commit | 8da33d2e461006fbdea91cd702c1921c937a21b3 (patch) | |
| tree | bcd08da699ed6aaeb9ea0bdc0cc46b1d0dd5b775 /tests/functional_tests/util_resources.py | |
| parent | e505ffef5f5f2f03eb1843b49146e5cd6b732fbf (diff) | |
| parent | 6799e212ccd3421447761b662ac89afe6f54535b (diff) | |
| download | monzero-core-8da33d2e461006fbdea91cd702c1921c937a21b3.tar.gz monzero-core-8da33d2e461006fbdea91cd702c1921c937a21b3.tar.xz monzero-core-8da33d2e461006fbdea91cd702c1921c937a21b3.zip | |
Merge pull request #7686
6799e21 Tests: Mining test uses a parametric path for finding the calculation app (mj-xmr)
Diffstat (limited to 'tests/functional_tests/util_resources.py')
| -rwxr-xr-x | tests/functional_tests/util_resources.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/functional_tests/util_resources.py b/tests/functional_tests/util_resources.py index e45122e66..0ea96c129 100755 --- a/tests/functional_tests/util_resources.py +++ b/tests/functional_tests/util_resources.py @@ -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) |
