Create working dir if it does not exist
authorDonghoon Shin <dhs.shine@gmail.com>
Wed, 1 Feb 2017 23:56:48 +0000 (08:56 +0900)
committerDonghoon Shin <dhs.shine@gmail.com>
Thu, 2 Feb 2017 00:15:24 +0000 (09:15 +0900)
User can use -d option to set working directory for litmus run
subcommand. This modification creates working directory if it does not
exist.

CHANGES.txt [deleted file]
MANIFEST.in
debian/changelog
debian/docs
litmus/core/manager.py

diff --git a/CHANGES.txt b/CHANGES.txt
deleted file mode 100644 (file)
index 27808bb..0000000
+++ /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'
index 07fcd5ac2397a755c693c13b47b82c42d3e2726e..a9648a1778cee848666fd56378cce8e13c026086 100644 (file)
@@ -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 *
index 6563309c490cdc205384f32c9ea68ec723589bfb..033f24f26a019db842e08df1884f51a3ae768973 100644 (file)
@@ -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 <dhs.shin@samsung.com>  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'
index a18c7d9e59323318dd581d89bca20492e97496f1..b43bf86b50fd8d3529a0dc062c30006ed38f309e 100644 (file)
@@ -1,2 +1 @@
-CHANGES.txt
 README.md
index 1de68aa94e064c7a6d6b8a7f1881115ad3676ba0..15f21cbd9bee24d690e7d4903e428f9a04afc785 100644 (file)
@@ -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())