Tests must fail on bash error

Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
This commit is contained in:
Maciej "Iwan" Iwanowski 2020-04-21 10:46:09 +02:00
parent 74b513b790
commit 6cd231e254
No known key found for this signature in database
GPG Key ID: 2484258A4DD3EE84

View File

@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#set -ex
set -x
set -e
function run_tests() {
BUILD_CMD="go test $GO_FLAGS $(go list $GO_FLAGS ./... | grep -v 'vendor\|integration' | tr '\n' ' ') && \
cd cmd && go test $GO_FLAGS $(go list $GO_FLAGS ./... | grep -v 'vendor\|integration' | tr '\n' ' ')"