]> code.ossystems Code Review - openembedded-core.git/commitdiff
qemuimagetest: Rename test scenario file from poky-image-sdk to poky-image-sato-sdk
authorJiajun Xu <jiajun.xu@intel.com>
Thu, 10 Feb 2011 14:50:14 +0000 (22:50 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 10 Feb 2011 15:27:50 +0000 (15:27 +0000)
Signed-off-by Jiajun Xu <jiajun.xu@intel.com>

scripts/qemuimage-testlib
scripts/qemuimage-tests/scenario/qemuarm/poky-image-sato-sdk [moved from scripts/qemuimage-tests/scenario/qemuarm/poky-image-sdk with 100% similarity]
scripts/qemuimage-tests/scenario/qemumips/poky-image-sato-sdk [moved from scripts/qemuimage-tests/scenario/qemumips/poky-image-sdk with 100% similarity]
scripts/qemuimage-tests/scenario/qemuppc/poky-image-sato-sdk [moved from scripts/qemuimage-tests/scenario/qemuppc/poky-image-sdk with 100% similarity]
scripts/qemuimage-tests/scenario/qemux86-64/poky-image-sato-sdk [moved from scripts/qemuimage-tests/scenario/qemux86-64/poky-image-sdk with 100% similarity]
scripts/qemuimage-tests/scenario/qemux86/poky-image-sato-sdk [moved from scripts/qemuimage-tests/scenario/qemux86/poky-image-sdk with 100% similarity]

index 823cbfa18b172ff3dd5330c15a8c32fdb28b7a53..720ee8f40758472e66855df08b0ca21b9f9a468a 100644 (file)
@@ -305,7 +305,8 @@ Test_Find_Image()
                else
                        for i in `dir ${where}`
                        do
-                               echo $i | grep -q "${kernel}.*${arch}.*\.${extension}"
+                               # Exclude qemux86-64 when target is qemux86
+                               echo $i | grep "${kernel}.*${arch}.*\.${extension}" | grep -qv "${kernel}.*${arch}-64.*\.${extension}"
                                if [ $? -eq 0 ]; then
                                        echo ${where}/${i}
                                        return 0
@@ -323,7 +324,8 @@ Test_Find_Image()
                else
                        for i in `dir ${where}`
                        do
-                               echo $i | grep -q "${target}-${arch}.*\.${extension}"
+                               # Exclude qemux86-64 when target is qemux86
+                               echo $i | grep "${target}-${arch}.*\.${extension}" | grep -qv "${target}-${arch}-64.*\.${extension}"
                                if [ $? -eq 0 ]; then
                                        echo ${where}/${i}
                                        return 0