Skip to content

Commit

Permalink
tests: Fix make discheck running proxy
Browse files Browse the repository at this point in the history
Running make discheck in a go path could create proxy
too long proxy socket paths (max socket path is 108 in linux) eg:

/home/cloud/go/src/github.com/01org/cc-oci-runtime/cc-oci-runtime-2.1.11/_build/sub/tests/functional/proxy.sock

This patch generates a path in tmp to avoid have long paths.

Signed-off-by: Jose Carlos Venegas Munoz <[email protected]>
  • Loading branch information
jcvenegas committed Jun 20, 2017
1 parent d10dc46 commit 053ea8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/functional/run-functional-tests.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#

export PROXY_SOCKET_PATH="@ABS_BUILDDIR@/tests/functional/proxy.sock"
set -e
export PROXY_SOCKET_PATH="$(mktemp -d --suffix=-cor-test)/proxy.sock"
export SHIM_PATH="@ABS_BUILDDIR@/cc-shim"
echo 'Running a new instance of cc-proxy'
@ABS_BUILDDIR@/cc-proxy -socket-path="${PROXY_SOCKET_PATH}" &
Expand Down

0 comments on commit 053ea8e

Please sign in to comment.