- Add projects/topology param at command prompt
- Support multiple mock devices in topology
- Add global lock for mock device type
+
+Version 0.3.1 22 Sep 2016
+---------------------------
+- Update cmd_rm handler
$ mv litmus litmus-0.3.0
- $ tar cvfz litmus-0.3.0.orig.tar.gz litmus-0.3.0
+ $ tar cvfz litmus_0.3.0.orig.tar.gz litmus-0.3.0
1. Build a deb package with debuild
+litmus (0.3.1-1) unstable; urgency=low
+
+ * Update cmd_rm handler
+
+ -- Donghoon Shin <dhs.shin@samsung.com> Thu, 22 Sep 2016 07:42:00 +0900
+
litmus (0.3.0-1) unstable; urgency=low
* Update projects/topology file location
# limitations under the License.
import os
-__version__ = '0.3.0'
+__version__ = '0.3.1'
_homedir_ = os.path.expanduser('~')
_confdir_ = os.path.join(_homedir_, '.litmus')
_duts_ = os.path.join(_confdir_, 'topology')
configparser.read(args.projects)
if args.project in configparser.sections():
+
+ yn = input('Do you really want to remove {0}? (y/N) '
+ .format(args.project))
+ if not yn or yn.capitalize().startswith('N'):
+ return
+
path = configparser.get(args.project, 'path')
- shutil.rmtree(path)
+ try:
+ shutil.rmtree(path)
+ except FileNotFoundError:
+ logging.debug('{0} does not exists'.format(path))
configparser.remove_section(args.project)
with open(args.projects, 'w') as f: