<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 12, 2019 at 1:01 PM Yongxin Liu <<a href="mailto:yongxin.liu@windriver.com">yongxin.liu@windriver.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Fix: <a href="https://github.com/linux-test-project/ltp/issues/458" rel="noreferrer" target="_blank">https://github.com/linux-test-project/ltp/issues/458</a><br>
<br>
Sometimes the swap device cannot show up in /dev/disk/by-uuid/<br>
or /dev/disk/by-lable/ due to the issue #458. When this issue<br>
happens, "blkid -c /dev/null" and "ls /dev/disk/by-uuid/" show<br>
different UUID of the device.<br>
<br>
Signed-off-by: Yongxin Liu <<a href="mailto:yongxin.liu@windriver.com" target="_blank">yongxin.liu@windriver.com</a>><br></blockquote><div><span class="gmail_default" style="font-size:small">Acked-by: Li Wang <<a href="mailto:liwang@redhat.com">liwang@redhat.com</a>></span></div><div><span class="gmail_default" style="font-size:small"></span> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
---<br>
testcases/commands/mkswap/mkswap01.sh | 2 ++<br>
1 file changed, 2 insertions(+)<br>
<br>
diff --git a/testcases/commands/mkswap/mkswap01.sh b/testcases/commands/mkswap/mkswap01.sh<br>
index 3a348c6e6..9437c4a4e 100755<br>
--- a/testcases/commands/mkswap/mkswap01.sh<br>
+++ b/testcases/commands/mkswap/mkswap01.sh<br>
@@ -129,6 +129,8 @@ mkswap_test()<br>
return<br>
fi<br>
<br>
+ udevadm trigger --name-match=$TST_DEVICE<br>
+<br>
if [ -n "$device" ]; then<br>
mkswap_verify "$mkswap_op" "$op_arg" "$device" "$size" "$dev_file"<br>
if [ $? -ne 0 ]; then<br>
-- <br>
2.14.4<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>