From 25c3f2f616500d00e17ddc7e83cbe66870b90269 Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Fri, 9 Feb 2024 16:50:15 +0200 Subject: [PATCH] Fix sudo tee sequence --- .github/workflows/bench.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 5e03738967..6677a09a02 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -56,8 +56,8 @@ jobs: # Disable turboboost, hyperthreading and use performance governor - name: Prepare machine run: | - echo 1 > sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo - echo off > sudo tee /sys/devices/system/cpu/smt/control + echo 1 | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo + echo off | sudo tee /sys/devices/system/cpu/smt/control sudo cpupower frequency-set -g performance # Pin the benchmark to core 0 and run it at elevated priority. @@ -69,8 +69,8 @@ jobs: # Enable turboboost, hyperthreading and use powersave governor - name: Restore machine run: | - echo 0 > sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo - echo on > sudo tee /sys/devices/system/cpu/smt/control + echo 0 | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo + echo on | sudo tee /sys/devices/system/cpu/smt/control sudo cpupower frequency-set -g powersave if: success() || failure()