From c9adb8399687b60eb976ab32d960f4b32af71fea Mon Sep 17 00:00:00 2001 From: Yi Zhao Date: Thu, 7 Jan 2016 11:29:52 +0800 Subject: oeqa/runtime/smart: fix hardcoded root directory Use $HOME instead of /home/root in case user changes the default root directory by ROOT_HOME Signed-off-by: Yi Zhao Signed-off-by: Ross Burton --- meta/lib/oeqa/runtime/smart.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/lib/oeqa/runtime/smart.py b/meta/lib/oeqa/runtime/smart.py index e41668d261..126d614638 100644 --- a/meta/lib/oeqa/runtime/smart.py +++ b/meta/lib/oeqa/runtime/smart.py @@ -147,7 +147,7 @@ class SmartRepoTest(SmartTest): for i in output.split("\n"): if ("rpmsys" != str(i)) and ("myrpmdir" != str(i)): self.smart('channel --disable '+str(i)) - self.target.run('cd /home/root') + self.target.run('cd $HOME') self.smart('install psplash') for i in output.split("\n"): if ("rpmsys" != str(i)) and ("myrpmdir" != str(i)): @@ -172,4 +172,4 @@ class SmartRepoTest(SmartTest): @skipUnlessPassed('test_smart_channel_add') def test_smart_remove_package(self): self.smart('install -y psplash') - self.smart('remove -y psplash') \ No newline at end of file + self.smart('remove -y psplash') -- cgit 1.2.3-korg