feat(t/evaluator/evaluate-oom-job): skip test if systemd-run is not present

This commit is contained in:
Kayla Firestack 2022-05-02 14:08:50 -04:00
parent 2c909c038f
commit 01ec004108

View file

@ -4,6 +4,14 @@ use Setup;
use Test2::V0;
use Hydra::Helper::Exec;
my ($systemdrRes) = captureStdoutStderr(3, (
"systemd-run", "--user", "--collect", "--scope", "--property", "MemoryMax=25M", "--",
"true"
));
skip_all("systemd-run does not work in this environment") if($systemdrRes != 0);
my ($res, $stdout, $stderr) = captureStdoutStderr(60,
(
"systemd-run", "--user", "--collect", "--scope", "--property", "MemoryMax=25M", "--",