Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(dm): update python2 to python3 #7533

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ dm_integration_test_build_ctl: check_failpoint_ctl

install_test_python_dep:
@echo "install python requirments for test"
pip install --user -q -r ./dm/tests/requirements.txt
pip3 install --user -q -r ./dm/tests/requirements.txt

check_third_party_binary_for_dm:
@which bin/tidb-server
Expand Down
2 changes: 1 addition & 1 deletion dm/tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
2. The following programs must be installed:

* `mysql` (the CLI client, currently [not supported for mysql client 8.0](https://github.com/pingcap/tidb/issues/14021))
* `python2.7` or `python3.x`
* `python3.x`

3. The user executing the tests must have permission to create the folder `/tmp/dm_test`. All test artifacts will be written into this folder.

Expand Down
2 changes: 1 addition & 1 deletion dm/tests/_utils/check_grafana_dashboard_datasource
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import sys
import json

Expand Down
2 changes: 1 addition & 1 deletion dm/tests/_utils/check_port
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#coding: utf-8

import sys
Expand Down
2 changes: 1 addition & 1 deletion dm/tests/_utils/check_ticker_interval
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python2
#!/usr/bin/env python3
import sys


Expand Down
2 changes: 1 addition & 1 deletion dm/tests/openapi/client/openapi_cluster_check
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import sys
import time
import requests
Expand Down
2 changes: 1 addition & 1 deletion dm/tests/openapi/client/openapi_source_check
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import sys
import requests
import ssl
Expand Down
2 changes: 1 addition & 1 deletion dm/tests/openapi/client/openapi_task_check
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import requests
Expand Down