Skip to content

Commit 0f85d3f

Browse files
Update tests/manage_domains_test.sh
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent ceaf383 commit 0f85d3f

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

tests/manage_domains_test.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
#!/bin/bash
22

3-
list_file="list"
4-
inactive_file="inactive"
5-
test_list_file="test_list"
6-
test_inactive_file="test_inactive"
3+
# Create temporary test directory
4+
TEST_DIR=$(mktemp -d)
5+
trap 'rm -rf "$TEST_DIR"' EXIT
6+
7+
# Source files
8+
list_file="../list"
9+
inactive_file="../inactive"
10+
11+
# Test files
12+
test_list_file="${TEST_DIR}/test_list"
13+
test_inactive_file="${TEST_DIR}/test_inactive"
714

815
# Backup original files
916
cp "$list_file" "$test_list_file"

0 commit comments

Comments
 (0)