1
0
mirror of https://github.com/gryf/mc_adbfs.git synced 2026-03-16 22:23:31 +01:00

Fix for removing files with space/parentheses.

Also, some further py2 cleanup.
This commit is contained in:
2020-04-26 09:32:17 +02:00
parent 390f1b1112
commit 2776668913
4 changed files with 15 additions and 49 deletions

View File

@@ -1,22 +1,17 @@
# simple makefile for running tests for the adbfs plugin
all: test_dir py2 py3 flake8
all: test_dir py3 flake8
TEST_DIR='.test'
PY2_VENV=$(TEST_DIR)/py2
PY3_VENV=$(TEST_DIR)/py3
FL8_VENV=$(TEST_DIR)/flake8
TST_EXISTS=$(shell [ -e $(TEST_DIR) ] && echo 1 || echo 0)
PY2_EXISTS=$(shell [ -e $(PY2_VENV) ] && echo 1 || echo 0)
PY3_EXISTS=$(shell [ -e $(PY3_VENV) ] && echo 1 || echo 0)
FL8_EXISTS=$(shell [ -e $(FL8_VENV) ] && echo 1 || echo 0)
py3: test_dir virtualenv3
.test/py3/bin/python test_adbfs.py
py2: test_dir virtualenv2
.test/py2/bin/python test_adbfs.py
flake8: test_dir virtualenv_flake8
.test/flake8/bin/flake8 adbfs test_adbfs.py
@@ -35,14 +30,6 @@ else
virtualenv3:
endif
ifeq ($(PY2_EXISTS), 0)
virtualenv2:
virtualenv -p python2 $(PY2_VENV)
$(PY2_VENV)/bin/pip install mock
else
virtualenv2:
endif
ifeq ($(FL8_EXISTS), 0)
virtualenv_flake8:
virtualenv -p python2 $(FL8_VENV)