Skip to content

Validate current OS is tier 1 + unit tests#11

Merged
marianan merged 13 commits intomainfrom
user/marine/tier1os
May 13, 2021
Merged

Validate current OS is tier 1 + unit tests#11
marianan merged 13 commits intomainfrom
user/marine/tier1os

Conversation

@marianan
Copy link
Contributor

No description provided.

if [ "$?" != "0" ]
then
echo "This OS is not supported. Exit."
# log_error "This OS is not supported. Exit."
Copy link
Contributor

@mhshami01 mhshami01 May 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use the logger now :-) #Resolved

is_os_tier1 $ID $VERSION_ID
if [ "$?" != "0" ]
then
log_error "This OS is not supported. Exit."
Copy link
Contributor

@cindydeng1998 cindydeng1998 May 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: should we leave a link to the Tier 1 OS documentation, or show that only two OS are supported today? #Resolved

Copy link
Contributor

@cindydeng1998 cindydeng1998 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌞

# attempt to download to a temporary file.
wget $url_text -q -O $tmp_file
#wget $url_text -q -O $tmp_file
cp ../$file_name .
Copy link
Contributor

@mhshami01 mhshami01 May 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • I assume this is only temporary :-)
  • Please merge with 'main' and use:
    cp ../$TOPDIR/$file_name .
  • nit: replace tabs with spaces :-) #Resolved

source src/utils.sh
source src/validate-tier1-os.sh
source utils.sh
source validate-tier1-os.sh
Copy link
Contributor

@mhshami01 mhshami01 May 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • after merging with main, use $TOPDIR/validate-tier1-os.sh #Resolved

@marianan marianan merged commit 27caf5a into main May 13, 2021
@marianan marianan deleted the user/marine/tier1os branch May 13, 2021 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants