From: Donghoon Shin Date: Wed, 1 Feb 2017 23:56:48 +0000 (+0900) Subject: Create working dir if it does not exist X-Git-Tag: 0.3.5~8^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f58e8f538e80248c7b9e3c1eb8004f052a722615;p=tools%2Flitmus.git Create working dir if it does not exist User can use -d option to set working directory for litmus run subcommand. This modification creates working directory if it does not exist. --- diff --git a/CHANGES.txt b/CHANGES.txt deleted file mode 100644 index 27808bb..0000000 --- a/CHANGES.txt +++ /dev/null @@ -1,49 +0,0 @@ -====================== - litmus Release Notes -====================== - -Version 0.1.0 09 Jun 2016 ---------------------------- -- Initial Version - -Version 0.1.1 27 Jun 2016 ---------------------------- -- Add ttyS0 in uarts list -- Release global lock at exception of device.on() function -- Turn off device if keyboard interrupt is raised while flashing or turning on device -- Add timeout for all call/check_output to avoid hang issue - -Version 0.2.0 09 Sep 2016 ---------------------------- -- Remove acmlock routine to improve test performance -- Support flash function for standalone device type -- Update test helper functions - -Version 0.2.1 09 Sep 2016 ---------------------------- -- Update import command to use shell-like path expansions -- Update standalone device type to avoid sdb error -- Update default templates for u3 and xu3 - -Version 0.3.0 21 Sep 2016 ---------------------------- -- Update projects/topology file location -- Add projects/topology param at command prompt -- Support multiple standalone devices in topology -- Add global lock for standalone device type - -Version 0.3.1 22 Sep 2016 ---------------------------- -- Update cmd_rm handler - -Version 0.3.2 07 Oct 2016 ---------------------------- -- Support artik and more standalone device types - -Version 0.3.3 11 Oct 2016 ---------------------------- -- Support device.screenshot() API - -Version 0.3.4 21 Oct 2016 ---------------------------- -- Update flash method for tw1 to skip passing parameter 'flasher' diff --git a/MANIFEST.in b/MANIFEST.in index 07fcd5a..a9648a1 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -15,7 +15,6 @@ include AUTHORS include README.md include LICENSE.APLv2 -include CHANGES.txt include MANIFEST.in include setup.py recursive-include litmus/templates * diff --git a/debian/changelog b/debian/changelog index 6563309..033f24f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +litmus (0.3.5-1) unstable; urgency=low + + * Create a working directory if it does not exist (for -d option) + + -- Donghoon Shin Fri, 21 Oct 2016 11:36:00 +0900 + litmus (0.3.4-1) unstable; urgency=low * Update flash method for tw1 to skip passing parameter 'flasher' diff --git a/debian/docs b/debian/docs index a18c7d9..b43bf86 100644 --- a/debian/docs +++ b/debian/docs @@ -1,2 +1 @@ -CHANGES.txt README.md diff --git a/litmus/core/manager.py b/litmus/core/manager.py index 1de68aa..15f21cb 100644 --- a/litmus/core/manager.py +++ b/litmus/core/manager.py @@ -277,6 +277,8 @@ Lightweight test manager for tizen automated testing try: self._backup_cwd = os.getcwd() if self._workingdir: + if not os.path.exists(self._workingdir): + os.mkdir(self._workingdir) os.chdir(self._workingdir) else: workingdir_name = str((hashlib.sha1(str(datetime.now())