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

+19
-19
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+2-2
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',
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

sonic-utilities-tests/filter_fdb_input/test_vectors.py tests/filter_fdb_input/test_vectors.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -243,14 +243,14 @@
243243
],
244244
},
245245
{
246-
"arp": "sonic-utilities-tests/filter_fdb_input/arp.json",
247-
"fdb": "sonic-utilities-tests/filter_fdb_input/fdb.json",
248-
"config_db": "sonic-utilities-tests/filter_fdb_input/config_db.json",
249-
"expected_fdb": "sonic-utilities-tests/filter_fdb_input/expected_fdb.json"
246+
"arp": "tests/filter_fdb_input/arp.json",
247+
"fdb": "tests/filter_fdb_input/fdb.json",
248+
"config_db": "tests/filter_fdb_input/config_db.json",
249+
"expected_fdb": "tests/filter_fdb_input/expected_fdb.json"
250250
},
251251
{
252-
"arp": "sonic-utilities-tests/filter_fdb_input/arp.json",
253-
"fdb": "sonic-utilities-tests/filter_fdb_input/fdb.json",
252+
"arp": "tests/filter_fdb_input/arp.json",
253+
"fdb": "tests/filter_fdb_input/fdb.json",
254254
"config_db": {
255255
"VLAN": {
256256
"Vlan1": {}
@@ -263,8 +263,8 @@
263263
],
264264
},
265265
{
266-
"arp": "sonic-utilities-tests/filter_fdb_input/arp.json",
267-
"fdb": "sonic-utilities-tests/filter_fdb_input/fdb.json",
266+
"arp": "tests/filter_fdb_input/arp.json",
267+
"fdb": "tests/filter_fdb_input/fdb.json",
268268
"config_db": {
269269
},
270270
"expected_fdb": [

sonic-utilities-tests/gearbox_test.py tests/gearbox_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
sys.path.insert(0, test_path)
1010
sys.path.insert(0, modules_path)
1111

12-
import mock_tables.dbconnector # required by sonic-utilities-tests
12+
import mock_tables.dbconnector # required by tests
1313

1414
import show.main as show
1515

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)