[sonic-device-data] Fix config symlinks dereference#2085
Merged
lguohan merged 1 commit intosonic-net:masterfrom Sep 27, 2018
Merged
[sonic-device-data] Fix config symlinks dereference#2085lguohan merged 1 commit intosonic-net:masterfrom
lguohan merged 1 commit intosonic-net:masterfrom
Conversation
('cp -H' -> 'cp -L')
'-L' does what we need in this case
From man cp
...
-H follow command-line symbolic links in SOURCE
...
-L, --dereference
always follow symbolic links in SOURCE
Signed-off-by: Stepan Blyschak <[email protected]>
lguohan
approved these changes
Sep 27, 2018
taras-keryk
pushed a commit
to taras-keryk/sonic-buildimage
that referenced
this pull request
Apr 28, 2022
) Fix UT failed cause by change sonic_py_common to use swss_common #### Description Fix UT failed cause by change sonic_py_common to use swss_common, here is UT failed message: 2022-02-28T09:26:11.4706067Z _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2022-02-28T09:26:11.4706457Z scripts/route_check.py:556: in main 2022-02-28T09:26:11.4706805Z ret, res= check_routes() 2022-02-28T09:26:11.4707152Z scripts/route_check.py:491: in check_routes 2022-02-28T09:26:11.4707567Z rt_appl_miss = filter_out_local_interfaces(rt_appl_miss) 2022-02-28T09:26:11.4708035Z scripts/route_check.py:352: in filter_out_local_interfaces 2022-02-28T09:26:11.4708494Z chassis_local_intfs = chassis.get_chassis_local_interfaces() 2022-02-28T09:26:11.4708981Z utilities_common/chassis.py:7: in get_chassis_local_interfaces 2022-02-28T09:26:11.4709703Z chassisdb_conf=os.path.join('/usr/share/sonic/device/', platform, "chassisdb.conf") 2022-02-28T09:26:11.4710280Z /usr/lib/python3.7/posixpath.py:94: in join 2022-02-28T09:26:11.4710838Z genericpath._check_arg_types('join', a, *p) 2022-02-28T09:26:11.4711261Z _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ The UT failed because device_info.get_platform() return null, to fix this issue, add mock method for device_info.get_platform(). #### Motivation and Context pyswss will be deprecate, so sonic_py_common will changed to use swss_common. Some UT in this project failed because this change. #### How Has This Been Tested? Pass all UT and sonic-buildimage E2E test.
vivekrnv
pushed a commit
to vivekrnv/sonic-buildimage
that referenced
this pull request
Jun 23, 2022
8ac2810 [202111] [generate dump] Move the Core/Log collection to the End of process Execution and removed default timeout (sonic-net#2225) 77891de [202111] Fix UT failed cause by change pycommon to use swsscommon (sonic-net#2085) (sonic-net#2231) Signed-off-by: vkarri <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
('cp -H' -> 'cp -L')
'-L' does what we need in this case
From man cp
...
-H follow command-line symbolic links in SOURCE
...
-L, --dereference
always follow symbolic links in SOURCE
Signed-off-by: Stepan Blyschak [email protected]
- What I did
- How I did it
- How to verify it
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)