зеркало из https://github.com/microsoft/azure-cli.git
Update various utility scripts for switch to azure-cli-core. (#869)
This commit is contained in:
Родитель
d7c3d38ca2
Коммит
a46131137d
|
@ -7,7 +7,7 @@ from __future__ import print_function
|
|||
import os
|
||||
import sys
|
||||
from subprocess import check_call, CalledProcessError
|
||||
import azure.cli.application as application
|
||||
import azure.cli.core.application as application
|
||||
|
||||
COVERAGE_FILE = 'command_coverage.txt'
|
||||
DEVNULL = open(os.devnull, 'w')
|
||||
|
|
|
@ -12,7 +12,7 @@ import re
|
|||
import types
|
||||
import sys
|
||||
|
||||
from azure.cli.application import APPLICATION, Application
|
||||
from azure.cli.core.application import APPLICATION, Application
|
||||
|
||||
class Exporter(json.JSONEncoder):
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import re
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
from azure.cli.application import Configuration
|
||||
from azure.cli.core.application import Configuration
|
||||
|
||||
class Exporter(json.JSONEncoder):
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import json
|
|||
import re
|
||||
import sys
|
||||
|
||||
from azure.cli.application import Configuration
|
||||
from azure.cli.core.application import Configuration
|
||||
|
||||
class Exporter(json.JSONEncoder):
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
export PYTHONPATH=$PATHONPATH:./src
|
||||
pylint -r n src/azure
|
||||
pylint -d I0013 -r n src/azure-cli/azure
|
||||
pylint -d I0013 -r n src/azure-cli-core/azure
|
||||
python scripts/command_modules/pylint.py
|
|
@ -1,3 +1,4 @@
|
|||
@echo off
|
||||
pylint -d I0013 -r n src/azure
|
||||
pylint -d I0013 -r n src/azure-cli/azure
|
||||
pylint -d I0013 -r n src/azure-cli-core/azure
|
||||
python scripts/command_modules/pylint.py
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
export PYTHONPATH=$PATHONPATH:./src
|
||||
python -m unittest discover -s src/azure/cli/tests
|
||||
clear
|
||||
python -m unittest discover -s src/azure-cli/azure/cli/tests --buffer
|
||||
python -m unittest discover -s src/azure-cli-core/azure/cli/core/tests --buffer
|
||||
python scripts/command_modules/test.py
|
|
@ -1,4 +1,5 @@
|
|||
@echo off
|
||||
cls
|
||||
python -m unittest discover -s src/azure/cli/tests --buffer
|
||||
python -m unittest discover -s src/azure-cli/azure/cli/tests --buffer
|
||||
python -m unittest discover -s src/azure-cli-core/azure/cli/core/tests --buffer
|
||||
python scripts/command_modules/test.py
|
Загрузка…
Ссылка в новой задаче