Skip to content

Commit 8f8f4aa

Browse files
authored
Add test for host info output
1 parent bf2a569 commit 8f8f4aa

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/test-ghe-backup.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,3 +734,16 @@ begin_test "ghe-backup fix_paths_for_ghe_version newer/older"
734734
done
735735
)
736736
end_test
737+
738+
# Check that information on system where backup-utils is installed is collected
739+
begin_test "ghe-backup collects information on system where backup-utils is installed"
740+
(
741+
set -e
742+
743+
output=$(ghe-backup)
744+
echo "$output" | grep "Running on: $(cat /etc/issue.net)"
745+
echo "$output" | grep "CPUs: $(nproc)"
746+
echo "$output" | grep "Memory total/used/free+share/buff/cache:"
747+
748+
)
749+
end_test

0 commit comments

Comments
 (0)