Hello,

I just tried to record the same result, and it works well.
See https://staging.validation.linaro.org/scheduler/job/251005#L750 and https://staging.validation.linaro.org/results/testcase/6492728


Le ven. 29 mars 2019 à 07:35, Frank, Matthias <Matthias.Frank@tq-group.com> a écrit :

Hi,

 

this is my test case:

----------------------------------------------------------------------------------------------------------------------

#!/bin/sh

 

TMPFILE=/tmp/matrix_temperature.log

set -x

set -e

stress-ng --matrix 0 --matrix-size 1000 -t 1M  --tz  --log-file $TMPFILE

MEASUREMENT=$(awk '$5 ~ /-?[0-9]+\.[0-9]+/ && $6=="°C" {print $5}' $TMPFILE )

UNIT=$(awk '$5 ~ /-?[0-9]+\.[0-9]+/ && $6=="°C" {print $6}' $TMPFILE )

 

lava-test-case stress-ng-temperature_1 --result pass --measurement $MEASUREMENT --units $UNIT

----------------------------------------------------------------------------------------------------------------------

 

An this is the result output:

 

/lava-280/bin/lava-test-runner /lava-280/0

root@MBa6x:~ [6n/lava-280/bin/lava-test-runner /lava-280/0

Test shell timeout: 10s (minimum of the action and connection timeout)

/lava-280/bin/lava-test-runner /lava-280/0

+ export 'TESTRUN_ID=0_stress-ng-temperature'

+ cd /lava-280/0/tests/0_stress-ng-temperature

+ cat uuid

+ UUID=280_1.4.2.3.1

+ set +x

<LAVA_SIGNAL_STARTRUN 0_stress-ng-temperature 280_1.4.2.3.1>

Received signal: <STARTRUN> 0_stress-ng-temperature 280_1.4.2.3.1

Starting test lava.0_stress-ng-temperature (280_1.4.2.3.1)

Skipping test definition patterns.

+ ./stress-ng-temperature.sh

+ set -e

+ stress-ng --matrix 0 --matrix-size 1000 -t 1M --tz --log-file /tmp/matrix_temperature.log

stress-ng: info:  [293] dispatching hogs: 2 matrix

stress-ng: info:  [293] cache allocate: using built-in defaults as unable to determine cache details

stress-ng: info:  [293] successful run completed in 60.03s (1 min, 0.03 secs)

stress-ng: info:  [293] matrix:

stress-ng: info:  [293]     imx_thermal_zone   34.01 °C

+ awk '$5 ~ /-?[0-9]+\.[0-9]+/ && $6==\"°C\" {print $5}' /tmp/matrix_temperature.log

+ MEASUREMENT=34.01

+ awk '$5 ~ /-?[0-9]+\.[0-9]+/ && $6==\"°C\" {print $6}' /tmp/matrix_temperature.log

+ UNIT='°C'

+ lava-test-case stress-ng-temperature_1 --result pass --measurement 34.01 --units '°C'

+ '<LAVA_SIGNAL_TESTCASE' 'TEST_CASE_ID=stress-ng-temperature_1' 'RESULT=pass' 'UNITS=°C' 'MEASUREMENT=34.01>'

Received signal: <TESTCASE'> 'TEST_CASE_ID=stress-ng-temperature_1' 'RESULT=pass' 'UNITS=°C' 'MEASUREMENT=34.01

/lava-280/0/tests/0_stress-ng-temperature/run.sh: line 13: <LAVA_SIGNAL_TESTCASE: not found


Which command are you calling here ?
I believe that this is the reason for the failure.

-- 
Rémi Duraffort
LAVA Team, Linaro