Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
Merge #579
Browse files Browse the repository at this point in the history
579: Problem:(CRO-574)  integration test cannot run on linux r=tomtau a=leejw51crypto

Solution: add fixes for linux
fix env error

add sudo



Co-authored-by: jongwhan lee <[email protected]>
  • Loading branch information
bors[bot] and leejw51 authored Nov 14, 2019
2 parents 75e6f36 + 4971789 commit 227325b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions chain-tx-enclave/tx-validation/make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ set -e

source /root/.docker_bashrc
cd ./chain-tx-enclave/tx-validation
make clean
make
7 changes: 5 additions & 2 deletions integration-tests/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ function check_command_exist() {

# Awlays execute at script located directory
CWD=$(pwd)
if [ x"$(basename "${0}")" = "xenv.sh" ]; then
cd "$(dirname "${0}")"
# in non interactive shell
# ${0} is -bash
# TODO: replace this line, to make it work on non interactive shell
if [ x"$(basename -- "${0}")" = "xenv.sh" ]; then
cd "$(dirname -- "${0}")"
fi
# Travis CI run `. ./env.sh` using `build.sh`. i.e. `${0}`` is `/home/travis/build.sh`

Expand Down
3 changes: 3 additions & 0 deletions integration-tests/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ IFS=
# Global function return value
RET_VALUE=0

# change attribute
chmod ug+s ./docker-data

# @argument message
function print_message() {
echo "[$(date +"%Y-%m-%d|%T")] ${1}"
Expand Down

0 comments on commit 227325b

Please sign in to comment.