avocado.remote.runner: Remove usage of os.path.relpath
Python 2.6's os.path.relpath function returns some funny
results, such as:
In [3]: os.path.relpath('/tmp', '/')
Out[3]: '../tmp'
So let's skip relpath entirely.
Changes from v1:
* Per ldoktor's suggestion use lstrip('/') instead of
relpath workarounds.
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
Showing
想要评论请 注册 或 登录