Skip to content

Commit 216688e

Browse files
authored
[tests]: rename sonic-utilitie-tests to tests (sonic-net#1022)
1 parent c0c3cce commit 216688e

39 files changed

Lines changed: 19 additions & 19 deletions

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ If this is a bug fix, make sure your description includes "closes #xxxx",
99
issue when the PR is merged.
1010
1111
If you are adding/modifying/removing any command or utility script, please also
12-
make sure to add/modify/remove any unit tests from the sonic-utilities-tests
12+
make sure to add/modify/remove any unit tests from the tests
1313
directory as appropriate.
1414
1515
If you are modifying or removing an existing 'show', 'config' or 'sonic-clear'

scripts/dropconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ from tabulate import tabulate
2121
try:
2222
if os.environ["UTILITIES_UNIT_TESTING"] == "1":
2323
modules_path = os.path.join(os.path.dirname(__file__), "..")
24-
test_path = os.path.join(modules_path, "sonic-utilities-tests")
24+
test_path = os.path.join(modules_path, "tests")
2525
sys.path.insert(0, modules_path)
2626
sys.path.insert(0, test_path)
2727
import mock_tables.dbconnector

scripts/dropstat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ from natsort import natsorted
2626
try:
2727
if os.environ["UTILITIES_UNIT_TESTING"] == "1":
2828
modules_path = os.path.join(os.path.dirname(__file__), "..")
29-
test_path = os.path.join(modules_path, "sonic-utilities-tests")
29+
test_path = os.path.join(modules_path, "tests")
3030
sys.path.insert(0, modules_path)
3131
sys.path.insert(0, test_path)
3232
import mock_tables.dbconnector

scripts/gearboxutil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import os
1111
try:
1212
if os.environ["UTILITIES_UNIT_TESTING"] == "1":
1313
modules_path = os.path.join(os.path.dirname(__file__), "..")
14-
tests_path = os.path.join(modules_path, "sonic-utilities-tests")
14+
tests_path = os.path.join(modules_path, "tests")
1515
sys.path.insert(0, modules_path)
1616
sys.path.insert(0, tests_path)
1717
import mock_tables.dbconnector

scripts/intfstat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import time
1919
try:
2020
if os.environ["UTILITIES_UNIT_TESTING"] == "1":
2121
modules_path = os.path.join(os.path.dirname(__file__), "..")
22-
test_path = os.path.join(modules_path, "sonic-utilities-tests")
22+
test_path = os.path.join(modules_path, "tests")
2323
sys.path.insert(0, modules_path)
2424
sys.path.insert(0, test_path)
2525
import mock_tables.dbconnector

scripts/intfutil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import os
1616
try:
1717
if os.environ["UTILITIES_UNIT_TESTING"] == "1":
1818
modules_path = os.path.join(os.path.dirname(__file__), "..")
19-
tests_path = os.path.join(modules_path, "sonic-utilities-tests")
19+
tests_path = os.path.join(modules_path, "tests")
2020
sys.path.insert(0, modules_path)
2121
sys.path.insert(0, tests_path)
2222
import mock_tables.dbconnector

scripts/psushow

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ from tabulate import tabulate
1010
try:
1111
if os.environ["UTILITIES_UNIT_TESTING"] == "1":
1212
modules_path = os.path.join(os.path.dirname(__file__), "..")
13-
test_path = os.path.join(modules_path, "sonic-utilities-tests")
13+
test_path = os.path.join(modules_path, "tests")
1414
sys.path.insert(0, modules_path)
1515
sys.path.insert(0, test_path)
1616
import mock_tables.dbconnector

scripts/sfpshow

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ from tabulate import tabulate
1717
try:
1818
if os.environ["UTILITIES_UNIT_TESTING"] == "1":
1919
modules_path = os.path.join(os.path.dirname(__file__), "..")
20-
test_path = os.path.join(modules_path, "sonic-utilities-tests")
20+
test_path = os.path.join(modules_path, "tests")
2121
sys.path.insert(0, modules_path)
2222
sys.path.insert(0, test_path)
2323
import mock_tables.dbconnector

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@
5050
'show',
5151
'sonic_installer',
5252
'sonic_installer.bootloader',
53-
'sonic-utilities-tests',
53+
'tests',
5454
'undebug',
5555
'utilities_common',
5656
'watchdogutil',
5757
],
5858
package_data={
5959
'show': ['aliases.ini'],
60-
'sonic-utilities-tests': ['acl_input/*', 'mock_tables/*.py', 'mock_tables/*.json', 'filter_fdb_input/*']
60+
'tests': ['acl_input/*', 'mock_tables/*.py', 'mock_tables/*.json', 'filter_fdb_input/*']
6161
},
6262
scripts=[
6363
'scripts/aclshow',

0 commit comments

Comments
 (0)