Skip to content

Commit 44a59b5

Browse files
authored
Update test-ghe-backup.sh
1 parent d9cf3a6 commit 44a59b5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/test-ghe-backup.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,9 @@ begin_test "ghe-backup collects information on system where backup-utils is inst
10681068
set -e
10691069

10701070
output=$(ghe-backup)
1071-
echo "$output" | grep "Running on: $(cat /etc/issue.net)"
1071+
OS_NAME=$(grep '^NAME' /etc/os-release | cut -d'"' -f2)
1072+
VERSION_ID=$(grep '^VERSION_ID' /etc/os-release | cut -d'"' -f2)
1073+
echo "$output" | grep "Running on: $OS_NAME $VERSION_ID"
10721074
echo "$output" | grep "CPUs: $(nproc)"
10731075
echo "$output" | grep "Memory total/used/free+share/buff/cache:"
10741076

@@ -1088,4 +1090,4 @@ begin_test "ghe-backup manages progress tracking files properly"
10881090
echo "$output" | grep -v "mkdir: cannot create directory /tmp/backup-utils-progress: File exists"
10891091

10901092
)
1091-
end_test
1093+
end_test

0 commit comments

Comments
 (0)