Skip to content

Commit

Permalink
Updating the home path in the test-*-release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dgaliffiAMD committed Oct 16, 2024
1 parent b6a15d0 commit fc0549b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docker/test-docker-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ test-release()
shift
local DOCKER_ARGS=""
tty -s && DOCKER_ARGS="-it" || DOCKER_ARGS=""
verbose-run docker run ${DOCKER_ARGS} --rm -v ${PWD}:/home/omnitrace ${CONTAINER} /home/omnitrace/scripts/test-release.sh ${@}
verbose-run docker run ${DOCKER_ARGS} --rm -v ${PWD}:/home/rocprof-sys ${CONTAINER} /home/rocprof-sys/scripts/test-release.sh ${@}
}

reset-last()
Expand Down Expand Up @@ -121,6 +121,6 @@ do
TAG=${DISTRO}-${VERSION}
for ROCM_VERSION in ${ROCM_VERSIONS}
do
test-release ${USER}/omnitrace:release-base-${TAG}-rocm-${ROCM_VERSION} ${SCRIPT_ARGS}
test-release ${USER}/rocprof-sys:release-base-${TAG}-rocm-${ROCM_VERSION} ${SCRIPT_ARGS}
done
done
8 changes: 4 additions & 4 deletions scripts/test-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ test-install()
change-directory()
{
if [ ! -f "${1}" ]; then
if [ -f "/home/omnitrace/${1}" ]; then
cd /home/omnitrace
elif [ -f "/home/omnitrace/docker/${1}" ]; then
cd /home/omnitrace/docker
if [ -f "/home/rocprof-sys/${1}" ]; then
cd /home/rocprof-sys
elif [ -f "/home/rocprof-sys/docker/${1}" ]; then
cd /home/rocprof-sys/docker
fi
fi
realpath ${1}
Expand Down

0 comments on commit fc0549b

Please sign in to comment.