Return-Path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=profusion-mobi.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=m9oFl+jj+OKit3G26bVe4itOJ7iwJrTpqbPI3E4O2II=; b=s4Q4lcP/UN+ggrUGZ7GOmKTPoGx/A56vNnwJoqyhE3O1THQkOOE/znd0ukW7rU0AWp 20XL+dKCrAsT1MhJ8S8j/zETMAggfq//kRGVw2za3xJxa0QTiv6XaOVKf7IA0G55i0xv qouuCGMALiTb9xEHmeroZF8WPrbdFOKGP8orEiJX3vViMkVzfVoy+7eSegqR0SS7jKCA nmgEWT9oMcESscR2v0UVEzmLSsWflLJX8JhTLVMCFkDen8cg/anIC0B8z51z+Xae2CtZ MwUm4QpZZkCuB/lU8vNoAgOg/BTC3N6iE0YxwL90SyvI3KvQh2+cM83/KcjBc94Jg/yI YoAg== From: Guilherme Campos Camargo Date: Wed, 28 Mar 2018 21:08:26 -0300 Message-Id: <20180329000832.12268-11-guicc@profusion.mobi> In-Reply-To: <20180329000832.12268-1-guicc@profusion.mobi> References: <20180329000832.12268-1-guicc@profusion.mobi> Subject: [Fuego] [PATCH 10/16] Write ok/fail on test report List-Id: Mailing list for the Fuego test framework List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fuego@lists.linuxfoundation.org Remove the 'minimal test' that had been copied from an example test. Signed-off-by: Guilherme Campos Camargo --- engine/tests/Functional.fuegotest/fuego_test.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/engine/tests/Functional.fuegotest/fuego_test.sh b/engine/tests/Functional.fuegotest/fuego_test.sh index b4755bc..ee60c81 100755 --- a/engine/tests/Functional.fuegotest/fuego_test.sh +++ b/engine/tests/Functional.fuegotest/fuego_test.sh @@ -1,7 +1,5 @@ #!/bin/bash -set -e - readonly fuego_release_dir=fuego-release function test_build { @@ -26,9 +24,13 @@ function test_build { function test_run { sudo -n ${TEST_HOME}/test_run.py "${fuego_release_dir}/fuego" - report "echo ok 1 minimal test on target" + if [ "${?}" = 0 ]; then + report "echo fuego-test: ok" + else + report "echo fuego-test: fail" + fi } function test_processing { - log_compare "$TESTDIR" "1" "^ok" "p" + log_compare "$TESTDIR" "1" "ok$" "p" } -- 2.16.2