Bug 9681 - Running abat script failed in module [intel_agp] and module [i915]
Summary: Running abat script failed in module [intel_agp] and module [i915]
Status: VERIFIED NOTABUG
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-tools (show other bugs)
Version: 2.0.2
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Saul Wold
QA Contact: Francisco Pedraza
URL: http://autobuilder.yoctoproject.org/p...
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-05-27 17:15 UTC by Francisco Pedraza
Modified: 2016-05-31 16:49 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Found by QA test)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
abat_log (929 bytes, text/plain)
2016-05-27 17:15 UTC, Francisco Pedraza
no flags Details
dmesg of abat test (41.79 KB, text/plain)
2016-05-27 18:39 UTC, David Rodriguez
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francisco Pedraza 2016-05-27 17:15:01 UTC
Created attachment 3190 [details]
abat_log

STATUS: IDLE
BUILD: 2.0.2: dade0e68c645473d94e1b05020b064df40677e81
ENVIRONMENT: genericx86-64 on NUC 

STEPS TO REPRODUCE: 
1. Download ABAT test suite from internal git repository,  git clone git://tinderbox.sh.intel.com/git/abat

2. Apply following patch to make it work on yocto environment

3. Run "./abat.sh" to run ABAT test. Below you can see script.
########
diff --git a/glxgears_check.sh b/glxgears_check.sh
index 17622b8..c4d3b97 100755
--- a/glxgears_check.sh
+++ b/glxgears_check.sh
@@ -31,7 +31,7 @@ else
 
     sleep 6
 
-    XPID=$( ps ax | awk '{print $1, $5}' | grep glxgears | awk '{print $1}')
+    XPID=$( ps | awk '{print $1, $5}' | grep glxgears | awk '{print $1}')
     if [ ! -z "$XPID" ]; then
         kill -9 $XPID >/dev/null 2>&1
         echo "glxgears can run, PASS!"
diff --git a/x_close.sh b/x_close.sh
index e287be1..3429f1a 100755
--- a/x_close.sh
+++ b/x_close.sh
@@ -22,7 +22,7 @@
 #
 function close_proc(){
 echo "kill process Xorg"
-XPID=$(  ps ax | awk '{print $1, $5}' | egrep "X$|Xorg$" | awk '{print $1}')
+XPID=$(  ps | awk '{print $1, $6}' | egrep "X$|Xorg$" | awk '{print $1}')
 if [ ! -z "$XPID" ]; then
     kill $XPID
     sleep 4
diff --git a/x_start.sh b/x_start.sh
index 9cf6eab..2305796 100755
--- a/x_start.sh
+++ b/x_start.sh
@@ -24,7 +24,7 @@
 X_ERROR=0
 
 #test whether X has started
-PXID=$(ps ax |awk '{print $1,$5}' |egrep "Xorg$|X$" |grep -v grep | awk '{print $1}')
+PXID=$(ps |awk '{print $1,$6}' |egrep "Xorg$|X$" |grep -v grep | awk '{print $1}')
 if [ ! -z "$PXID" ]; then
     echo "[WARNING] Xorg has started!"
     XORG_STATUS="started"
@@ -35,9 +35,11 @@ else
     #start up the x server
     echo "Start up the X server for test in display $DISPLAY................"
 
-    $XORG_DIR/bin/X >/dev/null 2>&1 &
+    #$XORG_DIR/bin/X >/dev/null 2>&1 &
+    #sleep 8
+    #xterm &
+    /etc/init.d/xserver-nodm start &
     sleep 8
-    xterm &
 fi
     XLOG_FILE=/var/log/Xorg.0.log
     [ -f $XORG_DIR/var/log/Xorg.0.log ] && XLOG_FILE=$XORG_DIR/var/log/Xorg.0.log
@@ -54,7 +56,7 @@ fi
         X_ERROR=1
     fi
 
-    XPID=$( ps ax | awk '{print $1, $5}' | egrep "X$|Xorg$" |grep -v grep| awk '{print $1}')
+    XPID=$( ps | awk '{print $1, $6}' | egrep "X$|Xorg$" |grep -v grep| awk '{print $1}')
     if [ -z "$XPID" ]; then
         echo "Start up X server FAIL!"
  echo
########


EXPECTED OUTCOME: All ABAT test should pass .
ACTUAL OUTCOME: One of the test cases failed, getting the following error message:" module [intel_agp] check FAIL, please load it manually!
    module [i915] check FAIL, please load it manually!"

Rep: 100% 

Additional Information: Very similar to https://bugzilla.yoctoproject.org/show_bug.cgi?id=2793
Attached you can find log.
Comment 1 David Rodriguez 2016-05-27 18:39:53 UTC
Created attachment 3191 [details]
dmesg of abat test
Comment 2 David Rodriguez 2016-05-27 18:41:54 UTC
Tested on model NUC6i5SYH 
dimesg attached
Comment 3 Saul Wold 2016-05-31 16:25:12 UTC
Please review the abat_log, particularly the lines that say "ignore above error info!"

module [i915] check FAIL, please load it manually!
i915 has been built in kernel!
Please ignore above error info!
module checking PASS!

Since i915 is built in as confirmed in the dmesg output, this test passes.  One note for the i915 and NUC Gen6, we may need to add the PRELIMINARY_HW flag to kernel cmdline, again the challenge of using newer hardware with the older OS.
Comment 4 Jose Perez C 2016-05-31 16:49:11 UTC
This is not a bug, tool reports as failure but in the logs there is a comment that says "Please ignore above error info!"