summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-05 01:42:37 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-24 10:26:51 (GMT)
commit3df5ccf9ac8d678749d553ed7d43f132237a2f04 (patch)
tree1240c759799c9dfc7e6d13599db5a3b4a6d16a95
parentfdee4a6d00f2ecbe19d01ac7485d7fe251f5f7d3 (diff)
kajonggtest: if src/twisted is a symbolic link, copy it into the tempdir
-rwxr-xr-xsrc/kajonggtest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kajonggtest.py b/src/kajonggtest.py
index 0c64c22..cacab6a 100755
--- a/src/kajonggtest.py
+++ b/src/kajonggtest.py
@@ -73,6 +73,10 @@ class Clone(object):
temp=self.tmpdir).split()).wait()
subprocess.Popen('git checkout -q {commitId}'.format(
commitId=commitId).split(), cwd=self.tmpdir).wait()
+ if os.path.islink('twisted'):
+ cpCmd = ['ln', '-s', '{}/twisted'.format(os.getcwd()),
+ '{}/src/twisted'.format(self.tmpdir)]
+ subprocess.Popen(cpCmd).wait()
def remove(self):
"""remove my tmpdir"""