Skip to content

Commit 2cc74ec

Browse files
committed
Copying from possibly remote directory to tmp before mount
1 parent a24092c commit 2cc74ec

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

containersQa/testlib.bash

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,10 @@ function runOnBaseDirBash() {
229229
}
230230

231231
function runOnBaseDirBashWithMount() {
232-
$PD_PROVIDER run -v=$LIBCQA_SCRIPT_DIR:/testsDir -i $HASH bash -c "$1"
232+
local d=$(mktemp -d)
233+
cp -r $LIBCQA_SCRIPT_DIR/*.java "${d}"
234+
$PD_PROVIDER run -v="${d}:/testsDir" -i "$HASH" bash -c "${1}"
235+
rm -rf "${d}"
233236
}
234237

235238
function runOnBaseDirBashOtherUser() {

0 commit comments

Comments
 (0)