diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-12 01:20:08 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-12 02:15:14 +0900 |
| commit | 620062cca92b6241c15f96f86a9c6f0f7882ecca (patch) | |
| tree | 400b5e46d0166d954373483fd948055d6f807cac /test/test.py | |
| parent | 196b200d0f19c41730db439c62db9b39e424f21f (diff) | |
hst: expose scheduling priority
This is useful when limits are configured to allow it.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test/test.py')
| -rw-r--r-- | test/test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test.py b/test/test.py index 57cf2084..571b71d9 100644 --- a/test/test.py +++ b/test/test.py @@ -210,10 +210,10 @@ print(machine.succeed('grep "shim: got SIGCONT from unexpected process$" /tmp/sh sched_unset = int(machine.succeed("sudo -u alice -i hakurei -v run cat /proc/self/sched | grep '^policy' | tr -d ' ' | cut -d ':' -f 2")) if sched_unset != 0: raise Exception(f"unexpected unset policy: {sched_unset}") -sched_idle = int(machine.succeed("sudo -u alice -i hakurei -v run --sched=idle cat /proc/self/sched | grep '^policy' | tr -d ' ' | cut -d ':' -f 2")) +sched_idle = int(machine.succeed("sudo -u alice -i hakurei -v run --policy=idle cat /proc/self/sched | grep '^policy' | tr -d ' ' | cut -d ':' -f 2")) if sched_idle != 5: raise Exception(f"unexpected idle policy: {sched_idle}") -sched_rr = int(machine.succeed("sudo -u alice -i hakurei -v run --sched=rr cat /proc/self/sched | grep '^policy' | tr -d ' ' | cut -d ':' -f 2")) +sched_rr = int(machine.succeed("sudo -u alice -i hakurei -v run --policy=rr cat /proc/self/sched | grep '^policy' | tr -d ' ' | cut -d ':' -f 2")) if sched_rr != 2: raise Exception(f"unexpected round-robin policy: {sched_idle}") |
