summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/smart.py
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:26:30 +0000
commitcce6c3ed9ad5b62226edfe3843b2a16356c555c8 (patch)
treefd5f84ab9bdbf2da80780c4e061bc9701917cb5c /meta/lib/oeqa/runtime/smart.py
parentcd2cf1f654389b872e6586a120774df2067fb6d2 (diff)
downloadpoky-cce6c3ed9ad5b62226edfe3843b2a16356c555c8.tar.gz
oeqa/runtime/smart: fix hardcoded root directory
Use $HOME instead of /home/root in case user changes the default root directory by ROOT_HOME (From OE-Core rev: c9adb8399687b60eb976ab32d960f4b32af71fea) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime/smart.py')
-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):
147 for i in output.split("\n"): 147 for i in output.split("\n"):
148 if ("rpmsys" != str(i)) and ("myrpmdir" != str(i)): 148 if ("rpmsys" != str(i)) and ("myrpmdir" != str(i)):
149 self.smart('channel --disable '+str(i)) 149 self.smart('channel --disable '+str(i))
150 self.target.run('cd /home/root') 150 self.target.run('cd $HOME')
151 self.smart('install psplash') 151 self.smart('install psplash')
152 for i in output.split("\n"): 152 for i in output.split("\n"):
153 if ("rpmsys" != str(i)) and ("myrpmdir" != str(i)): 153 if ("rpmsys" != str(i)) and ("myrpmdir" != str(i)):
@@ -172,4 +172,4 @@ class SmartRepoTest(SmartTest):
172 @skipUnlessPassed('test_smart_channel_add') 172 @skipUnlessPassed('test_smart_channel_add')
173 def test_smart_remove_package(self): 173 def test_smart_remove_package(self):
174 self.smart('install -y psplash') 174 self.smart('install -y psplash')
175 self.smart('remove -y psplash') \ No newline at end of file 175 self.smart('remove -y psplash')