Skip to content

Commit 55ae487

Browse files
author
Theofilos Manitaras
committed
Test that stagedir is mounted inside container
1 parent e893946 commit 55ae487

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

unittests/test_pipeline.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import reframe.utility.sanity as sn
1515
import unittests.utility as test_util
1616

17+
from reframe.core.containers import _STAGEDIR_MOUNT
1718
from reframe.core.exceptions import (BuildError, PipelineError, ReframeError,
1819
PerformanceError, SanityError)
1920

@@ -1221,11 +1222,12 @@ def __init__(self):
12211222
self.container_platform = platform
12221223
self.container_platform.image = image
12231224
self.container_platform.command = (
1224-
"bash -c 'cd /rfm_workdir; pwd; ls; cat /etc/os-release'"
1225+
f"bash -c 'cd {_STAGEDIR_MOUNT}; pwd; ls; "
1226+
f"cat /etc/os-release'"
12251227
)
12261228
self.prerun_cmds = ['touch foo']
12271229
self.sanity_patterns = sn.all([
1228-
sn.assert_found(r'^/rfm_workdir', self.stdout),
1230+
sn.assert_found(rf'^{_STAGEDIR_MOUNT}', self.stdout),
12291231
sn.assert_found(r'^foo', self.stdout),
12301232
sn.assert_found(
12311233
r'18\.04\.\d+ LTS \(Bionic Beaver\)', self.stdout),

0 commit comments

Comments
 (0)