Skip to content

cp -r instead of mv#45

Open
andrlos wants to merge 1 commit intorh-openjdk:mainfrom
andrlos:cprmvSubstitute
Open

cp -r instead of mv#45
andrlos wants to merge 1 commit intorh-openjdk:mainfrom
andrlos:cprmvSubstitute

Conversation

@andrlos
Copy link
Contributor

@andrlos andrlos commented Mar 11, 2026

cp -r instead of mv, as windows tend to be messy with directories and renders them as "busy"

cp -r instead of mv, as windows tend to be messy with directories and renders them as "busy"
mv ${SCRIPT_DIR}/test.${TIME} .
cp -r ${SCRIPT_DIR}/test.${TIME} .
rm -rf ${SCRIPT_DIR}/test.${TIME}
mv -v ${SCRIPT_DIR}/test.${TIME}.tar.gz . || echo "Moving of results tarball failed"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is second mv. That is not making troubles? It is || "always ok", but still we want that tarball...
Maybe add if cgwing them cp/rm else mv?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This issue would be more spread over our suites.. Especially security reproducers. Long live duplicated code.. :(

$envVarArg \
$FOLDER | tee test.${TIME}/tests.log || r=$?

tar -czf test.${TIME}.tar.gz "${jtWork}" "${jtReport}" || echo "Packing of results tarball failed"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't the permission issue occurring already during tarirng? Maybe we can tar directly to the palce we mv to?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants