-
Notifications
You must be signed in to change notification settings - Fork 7
Update mtlsUtils.cpp #170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Update mtlsUtils.cpp #170
Changes from all commits
f371af4
d6fdd9e
22ee1cf
fbb04fc
4996ded
e5500c9
7a8cdaf
627a973
c3f01d3
2d6bdbe
940b2e9
15946da
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,4 +1,4 @@ | ||||||||||||||||||||||||||||||||||||||||||||||
| #!/bin/sh | ||||||||||||||||||||||||||||||||||||||||||||||
| #!/bin/sh | ||||||||||||||||||||||||||||||||||||||||||||||
| #################################################################################### | ||||||||||||||||||||||||||||||||||||||||||||||
| # If not stated otherwise in this file or this component's LICENSE file the | ||||||||||||||||||||||||||||||||||||||||||||||
| # following copyright and licenses apply: | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -31,6 +31,12 @@ export CXXFLAGS="-Wno-format -Wno-unused-variable" | |||||||||||||||||||||||||||||||||||||||||||||
| ./configure --prefix=${RFC_INSTALL_DIR} --enable-rfctool=yes --enable-tr181set=yes | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| cd $RFC_ROOT | ||||||||||||||||||||||||||||||||||||||||||||||
| git clone https://github.com/rdkcentral/rdk_logger.git -b develop | ||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
33
to
+34
|
||||||||||||||||||||||||||||||||||||||||||||||
| cd $RFC_ROOT | |
| git clone https://github.com/rdkcentral/rdk_logger.git -b develop | |
| cd $RFC_ROOT | |
| rm -rf rdk_logger | |
| git clone https://github.com/rdkcentral/rdk_logger.git -b develop | |
| cd rdk_logger | |
| autoreconf -i | |
| ./configure --prefix=${RFC_INSTALL_DIR} | |
| make && make install | |
| cd $RFC_ROOT |
Copilot
AI
Feb 11, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The git clone command will fail if the rdk_logger directory already exists from a previous run. Consider adding a cleanup step (e.g., rm -rf rdk_logger) before cloning, or using a conditional check to skip cloning if the directory already exists. This is especially important for CI/CD environments where the script may be run multiple times.
Copilot
AI
Feb 11, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are extra blank lines (lines 37-38) that add unnecessary whitespace. Consider removing these to maintain consistency with the rest of the codebase.
Copilot
AI
Feb 10, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are two consecutive blank lines added here (lines 37 and 39) followed by a redundant directory change command. The extra blank lines serve no purpose and reduce code readability. Additionally, the 'cd $RFC_ROOT' command on line 38 is redundant since the script is already in that directory from line 33, and there was no directory change in between.
| cd $RFC_ROOT |
Copilot
AI
Feb 11, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The git clone command lacks error handling. If the clone fails (e.g., due to network issues or if the directory already exists from a previous run), the script will continue execution and likely fail later with unclear errors. Consider adding error checking after the git clone command, such as checking the exit code or using set -e at the script level.
| git clone https://github.com/rdkcentral/rdk_logger.git -b develop | |
| cp rdk_logger/include/rdk_logger.h /usr/local/include | |
| cd $RFC_ROOT | |
| rm -rf common_utilities | |
| git clone https://github.com/rdkcentral/common_utilities.git -b develop | |
| if ! git clone https://github.com/rdkcentral/rdk_logger.git -b develop; then | |
| echo "Error: Failed to clone rdk_logger repository" >&2 | |
| exit 1 | |
| fi | |
| cp rdk_logger/include/rdk_logger.h /usr/local/include | |
| cd $RFC_ROOT | |
| rm -rf common_utilities | |
| if ! git clone https://github.com/rdkcentral/common_utilities.git -b develop; then | |
| echo "Error: Failed to clone common_utilities repository" >&2 | |
| exit 1 | |
| fi |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| // | ||
|
||
| /*############################################################################## | ||
| # If not stated otherwise in this file or this component's LICENSE file the | ||
| # following copyright and licenses apply: | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,3 +1,4 @@ | ||||||||||||||
|
|
||||||||||||||
|
||||||||||||||
Copilot
AI
Feb 11, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The git clone command will fail if the rdk_logger directory already exists from a previous run. Consider adding a cleanup step (e.g., rm -rf rdk_logger) before cloning, or using a conditional check to skip cloning if the directory already exists. This is especially important for CI/CD environments where the script may be run multiple times.
Copilot
AI
Feb 11, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The git clone command lacks error handling. If the clone fails (e.g., due to network issues or if the directory already exists), the script will continue execution and likely fail later with unclear errors. Consider adding error checking after the git clone command, such as checking the exit code or using set -e at the script level.
| git clone https://github.com/rdkcentral/rdk_logger.git -b develop | |
| git clone https://github.com/rdkcentral/rdk_logger.git -b develop | |
| if [ $? -ne 0 ]; then | |
| echo "Error: Failed to clone rdk_logger repository" | |
| exit 1 | |
| fi |
Copilot
AI
Feb 11, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This script uses a wildcard to copy all files from rdk_logger/include/* while cov_build.sh (line 35) only copies rdk_logger/include/rdk_logger.h. This inconsistency could lead to different behavior between unit test and coverage build environments. Consider standardizing the approach - either both should copy all headers or both should copy only rdk_logger.h.
| cp rdk_logger/include/* /usr/local/include | |
| cp rdk_logger/include/rdk_logger.h /usr/local/include |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The shebang must start at the very first character of the file. This line currently has a leading space (
#!/bin/sh), which can prevent the script from running when executed directly (e.g.,./cov_build.sh) and may confuse tooling. Remove the leading whitespace so the file begins with#!/bin/shat column 1.