Commit 206e1bea authored by Dimitrios J. Vergados's avatar Dimitrios J. Vergados
Browse files

Don't count (and delete) files inside the os-tests directory

parent 620a5dae
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ setup() {
}

teardown() {
    find ./ -iname 'file[0-9]*' -type f -delete
    find ./ -maxdepth 1 -iname 'file[0-9]*' -type f -delete
}

@test "[TASK 3] test 1: should create 150 files with correct content" {
@@ -14,7 +14,7 @@ teardown() {
    [ "$status" -eq 0 ] # Ensure the script exits successfully

    # Check that 150 files were created
    file_count=$(find ./ -iname 'file[0-9]*' -type f | wc -l)
    file_count=$(find ./ -maxdepth 1 -iname 'file[0-9]*' -type f | wc -l)
    [ "$file_count" -eq 150 ]

    # Verify each file contains its respective number