summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRyan.RCS <lihainong@huawei.com>2016-12-09 03:06:41 +0000
committerRyan.RCS <lihainong@huawei.com>2016-12-15 02:10:56 +0000
commit70fae94c0d6157de5640db92f18ac95224affb5f (patch)
tree94f9c27f5f2b8d6e0f751ab5601dbe39646e387e /tools
parent6d8123f78a63292cf8be65bf7a347a5867bd5220 (diff)
Bugfixed:run command: "yardstick-img-modify" fail!
Avoid incorrect deletion of $raw_imgfile when the command: "kpartx -dv $raw_imgfile" execute failed. JIRA: YARDSTICK-424 Change-Id: I34dac60bda6c028c4b0f0bfd9ad077e2d5dbb0ff Signed-off-by: Ryan.RCS <lihainong@huawei.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/yardstick-img-modify2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/yardstick-img-modify b/tools/yardstick-img-modify
index c28e2ad59..0033383ef 100755
--- a/tools/yardstick-img-modify
+++ b/tools/yardstick-img-modify
@@ -153,7 +153,7 @@ cleanup() {
mount | grep $mountdir && umount $mountdir
mount | grep "/mnt/vivid" && umount "/mnt/vivid"
if [ -f $raw_imgfile ]; then
- kpartx -dv $raw_imgfile || true
+ kpartx -dv $raw_imgfile
fi
rm -f $raw_imgfile
rm -rf $mountdir