summaryrefslogtreecommitdiff
path: root/meta/lib
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2016-01-07 11:29:52 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-11 23:23:16 +0000
commitc9adb8399687b60eb976ab32d960f4b32af71fea (patch)
treee67fe920e5ea6b856d05b8975c51b6cca340e2e6 /meta/lib
parent17d77db5e1203e18cdd178e7d9a457310425ebdc (diff)
downloadopenembedded-core-c9adb8399687b60eb976ab32d960f4b32af71fea.tar.gz
openembedded-core-c9adb8399687b60eb976ab32d960f4b32af71fea.tar.bz2
openembedded-core-c9adb8399687b60eb976ab32d960f4b32af71fea.zip
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 <yi.zhao@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/runtime/smart.py4
1 files 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')