ia64/xen-unstable

changeset 12301:9ba12ce7f938

Allow the i386 ramdisk to be used on x86_64. Part of a patch from Yu Ping Y.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Wed Nov 01 09:21:27 2006 +0000 (2006-11-01)
parents f3f4d24178cc
children 9ceb1a07a85c
files tools/xm-test/runtest.sh
line diff
     1.1 --- a/tools/xm-test/runtest.sh	Wed Nov 01 08:43:54 2006 +0000
     1.2 +++ b/tools/xm-test/runtest.sh	Wed Nov 01 09:21:27 2006 +0000
     1.3 @@ -78,7 +78,13 @@ runnable_tests() {
     1.4      eval $(./lib/XmTestReport/xmtest.py)
     1.5      ARCH=$(uname -m | sed -e s/i.86/i386/ -e 's/ppc\(64\)*/powerpc/')
     1.6      rrdver="initrd-${XM_TEST_MAJ}.${XM_TEST_MIN}-${ARCH}.img"
     1.7 -    if [ "$realrd" != "$rrdver" ]; then
     1.8 +    exp_flag=0
     1.9 +    realarch=`echo $realrd | awk -F- '{print $3}' | awk -F. '{print $1}'`
    1.10 +    rrdarch=`echo $rrdver | awk -F- '{print $3}' | awk -F. '{print $1}'`
    1.11 +    if [ "$realarch" = "i386" -a "$rrdarch" = "x86_64" ]; then
    1.12 +	exp_flag=1
    1.13 +    fi
    1.14 +    if [ $exp_flag -eq 0 -a "$realrd" != "$rrdver" ]; then
    1.15  	echo "Error: ramdisk/initrd.img is from an old version, or is not for this "
    1.16          echo "architecture ($ARCH)."
    1.17  	echo "You need to build a ramdisk from at least ${XM_TEST_MAJ}.${XM_TEST_MIN}"