aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework/test_node.py
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2023-12-08 17:30:19 +0100
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2023-12-08 18:16:24 +0100
commit4c65ac96f8b021c107783adce3e8afe4f8edee6e (patch)
treeb951d272fe8d814ce0d67c610ad3e7f3a658b388 /test/functional/test_framework/test_node.py
parent37324ae3dfb0e50daaf752dc863a880559fa4637 (diff)
downloadbitcoin-4c65ac96f8b021c107783adce3e8afe4f8edee6e.tar.xz
test: detect OS consistently using `platform.system()`
Diffstat (limited to 'test/functional/test_framework/test_node.py')
-rwxr-xr-xtest/functional/test_framework/test_node.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/test_framework/test_node.py b/test/functional/test_framework/test_node.py
index 90c1213deb..c6465f0346 100755
--- a/test/functional/test_framework/test_node.py
+++ b/test/functional/test_framework/test_node.py
@@ -12,6 +12,7 @@ import http.client
import json
import logging
import os
+import platform
import re
import subprocess
import tempfile
@@ -19,7 +20,6 @@ import time
import urllib.parse
import collections
import shlex
-import sys
from pathlib import Path
from .authproxy import (
@@ -567,7 +567,7 @@ class TestNode():
cmd, shell=True,
stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL) == 0
- if not sys.platform.startswith('linux'):
+ if platform.system() != 'Linux':
self.log.warning("Can't profile with perf; only available on Linux platforms")
return None