If results dir already exists, do not try to create it#8
If results dir already exists, do not try to create it#8pharazon wants to merge 1 commit intomanolo:masterfrom
Conversation
| # create output folder | ||
| juDIR=`pwd`/results | ||
| mkdir -p "$juDIR" || exit | ||
| test ! -e $juDIR && mkdir -p "$juDIR" || exit |
There was a problem hiding this comment.
Doesn't mkdir -p create the folder only in the case it does not exist?
-p Create intermediate directories as required. If this option is not specified, the full path prefix of each operand must already exist. On the other hand, with this option
specified, no error will be reported if a directory given as an operand already exists. Intermediate directories are created with permission bits of rwxrwxrwx (0777) as mod-
ified by the current umask, plus write and search permission for the owner.
|
Hi Manolo, I am trying to use shjunit2 to generate test reports. I did several modifications to the file you have provided since it gave errors when trying to create log output. The modified code is as below. And my test code try to use the method in following manner When executing my test code exits with below error in the log output �[1;32mOK�[0m +++ Running case: default.tearDown |
No description provided.