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 | |
parent | cd2cf1f654389b872e6586a120774df2067fb6d2 (diff) | |
download | openembedded-core-contrib-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>
-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): 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') |