about summary refs log tree commit diff
path: root/src/ci/scripts
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2021-07-06 15:45:15 +0200
committerPietro Albini <pietro@pietroalbini.org>2021-07-06 16:34:51 +0200
commit0b3653bbdd70ff0c19edc5c59a794f4c4cd86f31 (patch)
tree50280ee7c5d04556708d44e3f09fca4059e66678 /src/ci/scripts
parentd04ec4735810553224eb5eaf948ec78f84eac06c (diff)
downloadrust-0b3653bbdd70ff0c19edc5c59a794f4c4cd86f31.tar.gz
rust-0b3653bbdd70ff0c19edc5c59a794f4c4cd86f31.zip
migrate cpu-usage-over-time.py to python 3
The only change here is a fix for `sys.platform` on Linux. Python 3.3
changed the API to return "linux" instead of "linux2"/"linux3", so this
commit uses `.startswith("python")` to make the code work on Python 3
without breaking Python 2.
Diffstat (limited to 'src/ci/scripts')
-rwxr-xr-xsrc/ci/scripts/collect-cpu-stats.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ci/scripts/collect-cpu-stats.sh b/src/ci/scripts/collect-cpu-stats.sh
index 08065431f98..853b4628fab 100755
--- a/src/ci/scripts/collect-cpu-stats.sh
+++ b/src/ci/scripts/collect-cpu-stats.sh
@@ -6,4 +6,4 @@
 set -euo pipefail
 IFS=$'\n\t'
 
-python src/ci/cpu-usage-over-time.py &> cpu-usage.csv &
+python3 src/ci/cpu-usage-over-time.py &> cpu-usage.csv &