mirror of
https://codeberg.org/shufflecake/shufflecake-c.git
synced 2025-12-26 21:55:18 -05:00
chore: Modify user message for tests
This commit is contained in:
parent
ec1fa3ec0c
commit
ce2e8bbd9c
2 changed files with 6 additions and 6 deletions
|
|
@ -49,10 +49,10 @@ int main()
|
|||
char *result = all_tests();
|
||||
|
||||
if (result != NULL) {
|
||||
sflc_log_red("\nTEST FAILED: %s", result);
|
||||
sflc_log_red("\nCRYPTO TEST FAILED: %s", result);
|
||||
}
|
||||
else {
|
||||
sflc_log_green("\nALL TESTS PASSED");
|
||||
sflc_log_green("\nALL CRYPTO TESTS PASSED");
|
||||
}
|
||||
|
||||
return result != NULL;
|
||||
|
|
|
|||
|
|
@ -535,18 +535,18 @@ do_test() {
|
|||
echo "Deleting test files..."
|
||||
rm -f "${MNTPOINT1}/${TESTFILE1}"
|
||||
rm -f "${MNTPOINT2}/${TESTFILE2}"
|
||||
bpx
|
||||
|
||||
# 4. Run fstrim to notify Shufflecake of the freed blocks
|
||||
echo "Running fstrim on $MNTPOINT1 (ext4)..."
|
||||
fstrim "$MNTPOINT1"
|
||||
if [ $? -ne 0 ]; then echo -e "${RED}WARNING: fstrim failed on \"$MNTPOINT1\". Slice recovery test may fail.${NC}" >&2; fi
|
||||
bpx
|
||||
|
||||
echo "Running fstrim on $MNTPOINT2 (ext4)..."
|
||||
fstrim "$MNTPOINT2"
|
||||
if [ $? -ne 0 ]; then echo -e "${RED}WARNING: fstrim failed on \"$MNTPOINT2\". Slice recovery test may fail.${NC}" >&2; fi
|
||||
bpx
|
||||
|
||||
sync # Ensure all I/O is flushed
|
||||
bpx
|
||||
|
||||
# 5. Unmount and close the device
|
||||
echo "Unmounting volumes..."
|
||||
umount "$MNTPOINT1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue