forked from lix-project/hydra
feat(t/evaluator/evaluate-oom-job): skip test if systemd-run is not present
This commit is contained in:
parent
2c909c038f
commit
01ec004108
|
@ -4,6 +4,14 @@ use Setup;
|
||||||
use Test2::V0;
|
use Test2::V0;
|
||||||
use Hydra::Helper::Exec;
|
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,
|
my ($res, $stdout, $stderr) = captureStdoutStderr(60,
|
||||||
(
|
(
|
||||||
"systemd-run", "--user", "--collect", "--scope", "--property", "MemoryMax=25M", "--",
|
"systemd-run", "--user", "--collect", "--scope", "--property", "MemoryMax=25M", "--",
|
||||||
|
|
Loading…
Reference in a new issue