Skip to content

Commit

Permalink
Add date to temporary directory name (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
mernst authored May 11, 2021
1 parent 4517075 commit 365d162
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion do_like_javac/tools/wpi.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from filecmp import dircmp

import common
import datetime
import os
import pprint
import shutil
Expand Down Expand Up @@ -52,7 +53,7 @@ def run(args, javac_commands, jars):
iteration = 0
diffResult = 1
stubDirs = []
resultsDir = tempfile.mkdtemp(prefix="wpi-stubs-")
resultsDir = tempfile.mkdtemp(prefix="wpi-stubs-" + datetime.now().format("%Y%m%d%H%M%S)"))

print "Directory for generated stub files: " + str(resultsDir)

Expand Down
2 changes: 1 addition & 1 deletion run-cf-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ else
mkdir -p /tmp/"$USER" && git -C /tmp/"$USER" clone --depth 1 -q https://github.com/plume-lib/plume-scripts.git
fi

### clone the CF. If there is a branch with the same name as this branch, git-clone-related will check out that branch.
### Clone the CF. If there is a branch with the same name as this branch, git-clone-related will check out that branch.
rm -rf /tmp/"$USER"/checker-framework
/tmp/"$USER"/plume-scripts/git-clone-related typetools checker-framework /tmp/"$USER"/checker-framework
export CHECKERFRAMEWORK=/tmp/"$USER"/checker-framework
Expand Down

0 comments on commit 365d162

Please sign in to comment.