Skip to content

Commit

Permalink
Fix file checks
Browse files Browse the repository at this point in the history
  • Loading branch information
dhinakg committed Jul 8, 2024
1 parent b263cc1 commit 640d2bb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
9 changes: 5 additions & 4 deletions test_extract.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,17 @@ mkdir -p tmp

for i in tests/*; do
i=$(basename "$i")
TEST_DIR="tests/$i"
TMP_DIR="tmp/$i"

echo "Testing $i"
if [ -f "tests/$i/skip_extract" ]; then

if [ -f "$TEST_DIR/skip_extract" ]; then
echo "Skipping $i"
echo ""
continue
fi

TEST_DIR="tests/$i"
TMP_DIR="tmp/$i"

mkdir -p "$TMP_DIR/a" "$TMP_DIR/b"

ret=0
Expand Down
11 changes: 6 additions & 5 deletions test_get_key.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,21 @@ mkdir tmp

for i in tests/*; do
i=$(basename "$i")
TEST_DIR="tests/$i"
TMP_DIR="tmp/$i"

echo "Testing $i"
if [ -e "tests/$i/skip_get_key" ]; then

if [ -e "$TEST_DIR/skip_get_key" ]; then
echo "Skipping $i"
echo ""
continue
fi

if [ -e "test/$i/fast_unsupported" ]; then
if [ -e "$TEST_DIR/fast_unsupported" ]; then
FAST=0
fi

TEST_DIR="tests/$i"
TMP_DIR="tmp/$i"

mkdir -p "$TMP_DIR"

ret=0
Expand Down

0 comments on commit 640d2bb

Please sign in to comment.