-
Notifications
You must be signed in to change notification settings - Fork 21
Public CI Video Decode and Encode Shell Scripts. #46
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
Conversation
# Extract the filename from the URL | ||
filename=$(basename "$url") | ||
if [ -f "$filename" ]; then | ||
return 0 |
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.
please fix indentation.
Runner/utils/functestlib.sh
Outdated
# Extract the filename from the URL | ||
filename=$(basename "$url") | ||
if check_tar_file "$filename"; then | ||
echo "[PASS] file already exists, Hence skipping downloading" |
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.
Please fix indentation.
|
||
#import test functions library | ||
. $TOOLS/functestlib.sh | ||
# shellcheck souce=../../../../utils/functestlib.sh |
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.
please fix the typo
|
||
#import test functions library | ||
. $TOOLS/functestlib.sh | ||
# shellcheck souce=../../../../utils/functestlib.sh |
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.
please fix the typo
Runner/utils/functestlib.sh
Outdated
filename=$(basename "$url") | ||
if check_tar_file "$filename"; then | ||
echo "[PASS] file already exists, Hence skipping downloading" | ||
return 1 |
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 return codes are really confusing. Sometimes 1
means OK and sometimes it means failure. I propose to return 0
always when there is no problem and use non-zero codes when there are issues.
Runner/utils/functestlib.sh
Outdated
|
||
if ping -c 1 -W 2 8.8.8.8 >/dev/null 2>&1; then | ||
echo "[PASS] Internet is reachable." | ||
return 1 |
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.
Return codes in this function are reversed.
When suite is run from a different directory than /var/ functions won't be able to find tests by name. This patch fixes the issue and allows to discover tests that are executed from current path. Signed-off-by: Milosz Wasilewski <[email protected]>
Implemented shell scripts for public CI for Decode and Encode Scenarios. Added Video encode test script Added Video decode test script Added readme document for video validation Implemented Function for ActiveIP Implemented Function for wget pull resource Implemented Function for untar of resource Implemented Function to check if file is already present or not Signed-off-by: Abhishek Bajaj <[email protected]>
Some Rebase issue. Will raise another PR |
Implemented shell scripts for public CI for Decode and Encode Scenarios.
Added Video encode test script
Added Video decode test script
Added readme document for video validation
Implemented Function for ActiveIP
Implemented Function for wget pull resource
Implemented Function for untar of resource
Implemented Function to check if file is already present or not