diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2017-09-13 11:09:38 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-09-24 17:57:35 +0900 |
commit | ce258f05d2fd9c3f66b831cae1e40bc9958cef1f (patch) | |
tree | c31d410640b1b3cc7f5da30f14af814817b542e2 /test/lib | |
parent | 9c61711a5c6a4ddade8473b2fbbda53d48d40cda (diff) |
test/lib/base: Reduce redundant build steps
Currently, the build steps of "go get" and removing the downloaded
directory are not effective steps.
For example, "go get" for downloading dependencies can be replaced
with "dep ensure".
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/base.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/lib/base.py b/test/lib/base.py index 08111420..5b1e4349 100644 --- a/test/lib/base.py +++ b/test/lib/base.py @@ -118,9 +118,8 @@ def make_gobgp_ctn(tag='gobgp', local_gobgp_path='', from_image='osrg/quagga'): c = CmdBuffer() c << 'FROM {0}'.format(from_image) - c << 'RUN go get -d github.com/osrg/gobgp/...; exit 0' - c << 'RUN rm -rf /go/src/github.com/osrg/gobgp' c << 'RUN go get -u github.com/golang/dep/cmd/dep' + c << 'RUN mkdir -p /go/src/github.com/osrg/' c << 'ADD gobgp /go/src/github.com/osrg/gobgp/' c << 'RUN cd /go/src/github.com/osrg/gobgp && dep ensure && go install ./gobgpd ./gobgp' |