Skip to content

Commit

Permalink
Added cisco config platform commands
Browse files Browse the repository at this point in the history
Signed-off-by: Yucai Gu <yucgu@cisco.com>
  • Loading branch information
yucgu committed Sep 8, 2022
1 parent b8d5c6a commit e32c64e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1205,6 +1205,7 @@ def config(ctx):
print("Caught an exception: " + str(e))
raise click.Abort()

exit("ut exit")
if asic_type == 'cisco-8000':
from sonic_platform.cli.cisco import cisco
platform.add_command(cisco)
Expand Down
4 changes: 2 additions & 2 deletions tests/config_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1633,7 +1633,7 @@ def setup_class(cls):
#importlib.reload(config.main)

def test_config_platform(self, ctx, get_cmd_module, setup_single_cisco_asic):
expected_output = "cisco"
expected_output = "firmware"
(config, show) = get_cmd_module
db = Db()
runner = CliRunner()
Expand All @@ -1644,7 +1644,7 @@ def test_config_platform(self, ctx, get_cmd_module, setup_single_cisco_asic):
print(result.exit_code)
print(result.output)
traceback.print_tb(result.exc_info[2])
#assert expected_output in result.output
assert expected_output in result.output

@classmethod
def teardown_class(cls):
Expand Down

0 comments on commit e32c64e

Please sign in to comment.