summaryrefslogtreecommitdiffstats
path: root/tools/browsertime
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 15:11:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 15:11:26 +0000
commitfcea19dfd2c426bac0456da850e7c12258e4b9eb (patch)
treea31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /tools/browsertime
parentAdding upstream version 115.7.0esr. (diff)
downloadfirefox-esr-3512beca9241712547078681b1a5f1f64df34543.tar.xz
firefox-esr-3512beca9241712547078681b1a5f1f64df34543.zip
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tools/browsertime')
-rw-r--r--tools/browsertime/mach_commands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/browsertime/mach_commands.py b/tools/browsertime/mach_commands.py
index 4850c82b75..68e9e3d5e7 100644
--- a/tools/browsertime/mach_commands.py
+++ b/tools/browsertime/mach_commands.py
@@ -81,9 +81,9 @@ def silence():
def node_path(command_context):
import platform
- from distutils.version import StrictVersion
from mozbuild.nodeutil import find_node_executable
+ from packaging.version import Version
state_dir = command_context._mach_context.state_dir
cache_path = os.path.join(state_dir, "browsertime", "node-16")
@@ -97,7 +97,7 @@ def node_path(command_context):
)
# Check standard locations first
- node_exe = find_node_executable(min_version=StrictVersion(MIN_NODE_VERSION))
+ node_exe = find_node_executable(min_version=Version(MIN_NODE_VERSION))
if node_exe and (node_exe[0] is not None):
return os.path.abspath(node_exe[0])
if not os.path.exists(cache_path):