Skip to content

Commit

Permalink
[qe] fix integration image scripts
Browse files Browse the repository at this point in the history
The scripts used to run the integration tests require to set several environment variables to customize the execution; the way the script try to set them and run the integration binary inheriting them was not right. This fix export those variables and execute the integration binary properly

Signed-off-by: Adrian Riobo Lorenzo <ariobolo@redhat.com>
  • Loading branch information
adrianriobo authored and praveenkumar committed Apr 30, 2024
1 parent 1b075ed commit ded1b1c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions images/build-integration/lib/darwin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ done
mkdir -p $targetFolder/results

# Run tests
PATH="$PATH:${HOME}/$targetFolder/bin"
PULL_SECRET_PATH="${HOME}/$targetFolder/pull-secret"
export PATH="$PATH:${HOME}/$targetFolder/bin"
export PULL_SECRET_PATH="${HOME}/$targetFolder/pull-secret"
if [ ! -z "$bundleLocation" ]
then
BUNDLE_PATH="$bundleLocation"
export BUNDLE_PATH="$bundleLocation"
fi
cd $targetFolder/bin
. integration.test > integration.results
./integration.test > integration.results

# Copy results
cd ..
Expand Down
8 changes: 4 additions & 4 deletions images/build-integration/lib/linux/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ done
mkdir -p $targetFolder/results

# Run tests
PATH="$PATH:${HOME}/$targetFolder/bin"
PULL_SECRET_PATH="${HOME}/$targetFolder/pull-secret"
export PATH="$PATH:${HOME}/$targetFolder/bin"
export PULL_SECRET_PATH="${HOME}/$targetFolder/pull-secret"
if [ ! -z "$bundleLocation" ]
then
BUNDLE_PATH="$bundleLocation"
export BUNDLE_PATH="$bundleLocation"
fi
cd $targetFolder/bin
. integration.test > integration.results
./integration.test > integration.results

# Copy results
cd ..
Expand Down

0 comments on commit ded1b1c

Please sign in to comment.