fwts_test needs to trap ABORT exit status too

Bug #1192684 reported by Jeff Lane 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox
Fix Released
High
Jeff Lane 

Bug Description

recent changes to fwts has enabled some tests on armhf that were not there. These tests are not arm valid tests, however, but they are added in to help us out (we don't have to create different tests for arm vs x86, or we don't need to specify per arch code in the wrapper).

One change recently was the enablement of the wakealarm test. because this doesn't exist on armhf, the test itself fails, but fwts reports it as an ABORT because the lack of wakealarm means the test isnt necessary... Here's what fwts says:

FAILED [MEDIUM] NoWakeAlarmTest1: Test 1, Could not find /sys/class/rtc/rtc0/wakealarm.

ADVICE: non-x86 devices sometimes do not have an RTC wake alarm that is normally controlled by the
/sys/class/rtc/rtc0/wakealarm interface. This interface does not exist, so the wake alarm tests will
be aborted.

Thus, instead of exiting with a status of MEDIUM, it exits with a status of ABORT.

So we need to trap these and ensure FWTS can fail on ABORT.

Related branches

Revision history for this message
Jeff Lane  (bladernr) wrote :

script now fails on aborts, if you specify '--fail-level aborted' This will allow us to continue using things like fwts_wakealarm as a dependency for other tests, even when the test is marked aborted because wakealarm doesn't exist on ARM.

summary: - fwts_test needs to trap ABORT exit status tool
+ fwts_test needs to trap ABORT exit status too
Changed in checkbox:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Jeff Lane (bladernr)
Daniel Manrique (roadmr)
Changed in checkbox:
status: In Progress → Fix Committed
Daniel Manrique (roadmr)
Changed in checkbox:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.