selftests/memory-hotplug: Restore memory before exit
authorZhao Gongyi <zhaogongyi@huawei.com>
Fri, 30 Sep 2022 06:35:25 +0000 (14:35 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 7 Oct 2022 16:32:04 +0000 (10:32 -0600)
commit3e77a49aa78a65c7cfc4a2662366442ea1498fbb
tree18873c7d903ef6799f51c92521c036d529ad6f60
parent13023c33c962730a38d6b43995910c8805637a9a
selftests/memory-hotplug: Restore memory before exit

Some momory will be left in offline state when calling
offline_memory_expect_fail() failed. Restore it before exit.

Signed-off-by: Zhao Gongyi <zhaogongyi@huawei.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/memory-hotplug/mem-on-off-test.sh