diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2016-01-07 11:29:52 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-11 23:26:30 +0000 |
commit | cce6c3ed9ad5b62226edfe3843b2a16356c555c8 (patch) | |
tree | fd5f84ab9bdbf2da80780c4e061bc9701917cb5c /meta/lib/oeqa | |
parent | cd2cf1f654389b872e6586a120774df2067fb6d2 (diff) | |
download | poky-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')
-rw-r--r-- | meta/lib/oeqa/runtime/smart.py | 4 |
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') |