Save previous dir and restore it before rmtree 20/13620/2
authorThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 22 Nov 2018 05:18:24 +0000 (13:18 +0800)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 22 Nov 2018 06:45:52 +0000 (14:45 +0800)
commit9b264c4f8c08aaa2f7b87c825c73f121d1156cdb
tree3357ad29cd0d78f45cf6256e5c366869a30791cf
parentd2aca2e11395c596080e6a63ad59acb15abfc61d
Save previous dir and restore it before rmtree

Make sure we restore the previous directory state before calling
rmtree.

Issue: RELENG-1512
Change-Id: Ie5ce6b3f4c19608c90a96c5cac63aa7c5ebd808d
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
lftools/deploy.py