Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rh-openjdk/run-folder-as-tests
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0
Choose a base ref
...
head repository: rh-openjdk/run-folder-as-tests
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Sep 21, 2024

  1. Verified

    This commit was signed with the committer’s verified signature.
    Gary-H9 Gary
    Copy the full SHA
    e9d6db6 View commit details

Commits on Dec 18, 2024

  1. Allow env var to pass in value

    sefroberg authored and judovana committed Dec 18, 2024
    Copy the full SHA
    82db892 View commit details
Showing with 19 additions and 1 deletion.
  1. +4 −1 run-folder-as-tests.sh
  2. +15 −0 tap-shell-tap.sh
5 changes: 4 additions & 1 deletion run-folder-as-tests.sh
Original file line number Diff line number Diff line change
@@ -40,8 +40,11 @@ set -x
set -e
set -o pipefail

# Allow for an environment variable to be passed in.
if [[ x${SUITE} == x ]] ; then
SUITE=`basename $DIR`
fi

SUITE=`basename $DIR`
# ${WORKSPACE} is set by jenkins. So when running local, without VM, it uses real jenkins workspace. Otherwise use /mnt/worksace
if [[ x${WORKSPACE} == x ]]; then
WORKSPACE=/mnt/workspace
15 changes: 15 additions & 0 deletions tap-shell-tap.sh
Original file line number Diff line number Diff line change
@@ -70,3 +70,18 @@ function tapFromFile() {
done
fi
}

function tapFromWholeFile() {
local file="$1"
local alilas="$2"
if [ ! -e "$file" ]; then
tapLine "$file/$alilas" "do not exists"
else
echo " cat $file/$alilas:"
echo " |"
cat $file| while IFS= read -r line; do
line=`echo $line | sed 's/^\s*\|\s*$//g'`
echo " $line"
done
fi
}