Skip to content

Commit

Permalink
Comments handled
Browse files Browse the repository at this point in the history
Signed-off-by: Vivek Reddy Karri <[email protected]>
  • Loading branch information
vivekrnv committed Sep 2, 2021
1 parent 9adc04a commit 8f2cc58
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions scripts/generate_dump
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ handle_signal()
trap 'handle_signal' SIGINT

handle_error() {
if [ "$1" != "0" ]; then
echo "ERR: RC:-$1 observed on line $2" >&2
RETURN_CODE=1
fi
if [ "$1" != "0" ]; then
echo "ERR: RC:-$1 observed on line $2" >&2
RETURN_CODE=1
fi
}

save_bcmcmd() {
Expand Down Expand Up @@ -814,11 +814,8 @@ collect_mellanox() {
local sdk_dump_path=`${CMD_PREFIX}docker exec syncd cat /tmp/sai.profile|grep "SAI_DUMP_STORE_PATH"|cut -d = -f2`
if [[ -d $sdk_dump_path ]]; then
copy_from_docker syncd $sdk_dump_path /tmp/sdk-dumps
for file in $(find /tmp/sdk-dumps); do
if [[ -f $file ]]
then
save_file ${file} sai_sdk_dump false
fi
for file in $(find /tmp/sdk-dumps -type f); do
save_file ${file} sai_sdk_dump false
done
rm -rf /tmp/sdk-dumps
fi
Expand Down

0 comments on commit 8f2cc58

Please sign in to comment.