From: Denys Dmytriyenko <[email protected]>

Signed-off-by: Denys Dmytriyenko <[email protected]>
---
v2 - fix passing not expanded [uz]Image to opentest

 lib/run-opentest |   11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/lib/run-opentest b/lib/run-opentest
index d3a04f3..71f9b96 100644
--- a/lib/run-opentest
+++ b/lib/run-opentest
@@ -170,9 +170,16 @@ run_target_side_test() {
         return 1
     fi
 
-    if [ -f $test_dir/temp/board-support/prebuilt-images/uImage-$m.bin ]
+    if [ -f $test_dir/temp/board-support/prebuilt-images/[uz]Image-$m.bin ]
     then
-        kernel=$test_dir/temp/board-support/prebuilt-images/uImage-$m.bin
+        if [ -f $test_dir/temp/board-support/prebuilt-images/zImage-$m.bin ]
+        then
+            kernel=$test_dir/temp/board-support/prebuilt-images/zImage-$m.bin
+        elif [ -f $test_dir/temp/board-support/prebuilt-images/uImage-$m.bin ]
+        then
+            kernel=$test_dir/temp/board-support/prebuilt-images/uImage-$m.bin
+        fi
+
         if [ "$odtb" ]
         then
             dtb="~dtb=$test_dir/temp/board-support/prebuilt-images/$odtb"
-- 
1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to