Skip to content

Commit

Permalink
minor edits in the test script
Browse files Browse the repository at this point in the history
  • Loading branch information
kirxkirx committed May 24, 2023
1 parent beeaa22 commit 94c2c50
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions util/examples/test_vast.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ function remove_test_data_to_save_space {
#########################################
# Remove test data from the previous tests if we are out of disk space
#########################################
### Disable this for GitHub Actions
if [ "$GITHUB_ACTIONS" != "true" ];then
return 0
fi
# Skip free disk space check on some pre-defined machines
# hope this check should work even if there is no 'hostname' command
hostname | grep --quiet 'eridan'
Expand Down Expand Up @@ -212,6 +216,10 @@ function remove_test_data_to_save_space {


function check_if_enough_disk_space_for_tests {
### Disable this for GitHub Actions
if [ "$GITHUB_ACTIONS" != "true" ];then
return 0
fi
hostname | grep --quiet 'eridan'
if [ $? -ne 0 ];then
# Check free disk space
Expand Down

0 comments on commit 94c2c50

Please sign in to comment.