aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Gong <gong.chen@linux.intel.com>2011-04-01 16:42:50 +0800
committerAndi Kleen <ak@linux.intel.com>2011-04-20 09:35:55 -0700
commit957c46ec0abda417a0a1ebe6acb95dd8ad3a180d (patch)
tree1e613915115885d44b0a6d9d3d683f5690d7a018
parent99eaa1b2c5d14d9dbd4af38ab9cbc9e10dd4a4cb (diff)
downloadmce-test-957c46ec0abda417a0a1ebe6acb95dd8ad3a180d.tar.gz
fix guest_tmp usage in the kvm SRAO test case
guest_tmp usage is totally wrong. It assumes existing the same directory on the host and guest. In fact, the definition is just correct for guest system. Otherwise, the file guest_tmp can't be transfered to the host correctly. Signed-off-by: Chen Gong <gong.chen@linux.intel.com>
-rwxr-xr-xkvm/host/host_run.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/kvm/host/host_run.sh b/kvm/host/host_run.sh
index 83cb309..500e275 100755
--- a/kvm/host/host_run.sh
+++ b/kvm/host/host_run.sh
@@ -286,14 +286,14 @@ addr_translate()
{
#Get Guest physical address
scp -o StrictHostKeyChecking=no -i $host_key_priv -P 5555 \
- localhost:$guest_tmp $guest_tmp > /dev/null 2>&1
+ localhost:$guest_tmp $HOST_DIR/guest_tmp > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "Failed to get Guest physical address, quit testing!"
kill -9 $QEMU_PID
exit 0
fi
sleep 2
- GUEST_PHY=`awk '{print $NF}' $guest_tmp`
+ GUEST_PHY=`awk '{print $NF}' $HOST_DIR/guest_tmp`
echo "Guest physical address is $GUEST_PHY"
sleep 2
@@ -372,5 +372,5 @@ else
fi
fi
-rm -f $host_start $monitor_console_output $serail_console_output $host_tmp $pid_file $mce_inject_data
+rm -f guest_tmp $host_start $monitor_console_output $serail_console_output $host_tmp $pid_file $mce_inject_data
rm -f ./simple_process ./page-types