Skip to content

Commit

Permalink
Merge pull request #89 from kumaran-ti/add_python_3_9_ccs_12_compatib…
Browse files Browse the repository at this point in the history
…ility

Change to add python 3.9 & CCS 12 compatibility
  • Loading branch information
webbcam committed Jul 10, 2022
2 parents 54e2623 + eb8c27b commit b3bc4ab
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion hooks/pre-commit.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

echo "Running pre-commit hook"
added_files=$(git diff --cached --name-only | grep "\.py" | tr '\n' ' ')
if [ -n "${added_files// }" ]; then
if [ -n "${added_files}" ]; then
echo "running flake8 on ${added_files}"
flake8 --exclude=__init__.py --ignore=E128 $added_files
if [ $? -ne 0 ]; then
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pyserial
2 changes: 2 additions & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
tox
jinja2
pytest
pytest-html
6 changes: 3 additions & 3 deletions tiflash/utils/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
if pyversion[0] == 2:
SOCK_TIMEOUT = None # timeouts don't seem to work for py2
else:
SOCK_TIMEOUT = 60 # timeout to wait for result
SOCK_TIMEOUT = 120 # timeout to wait for result #increased from 60 for CCS12 compatibility


class ResultServerError(Exception):
Expand Down Expand Up @@ -83,11 +83,11 @@ def get_result(self, timeout=None):
If 'None' will block/wait forever. If '0' will not block.
"""
if self.server_thread.isAlive() is True:
if self.server_thread.is_alive() is True:
self.server_thread.join(timeout=timeout)

# Thread should only be alive if timeout was exceeded
if self.server_thread.isAlive is True:
if self.server_thread.is_alive is True:
return None

if type(self.result) == str:
Expand Down
4 changes: 2 additions & 2 deletions tiflash/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
version = (1, 2, 9)
version = (1, 3, 0)
version_string = ".".join(map(str,version))
release_date = "2019.08.23"
release_date = "2022.07.05"

0 comments on commit b3bc4ab

Please sign in to comment.