Skip to content

Commit 0d5e83f

Browse files
Revise FATFS image handling in GitHub Action workflow
Co-Authored-By: [email protected] <[email protected]>
1 parent dfd6a3b commit 0d5e83f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/test-fatfs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,10 @@ jobs:
4848
4949
- name: Create FATFS image file
5050
run: |
51+
# Create the FATFS image file in the ide/Linux-FATFS directory
5152
cd ide/Linux-FATFS
5253
dd if=/dev/zero of=fatfs_image.img bs=1M count=32
5354
mkdosfs fatfs_image.img
54-
# Create a symbolic link to the image file in the current directory
55-
ln -sf $(pwd)/fatfs_image.img $(pwd)/storage.dat
5655
5756
- name: Create test file
5857
run: |
@@ -84,12 +83,13 @@ jobs:
8483
# Get the full path to the test file
8584
TEST_FILE_PATH=$(pwd)/test_file.bin
8685
87-
# Copy the FATFS image file to the sftpclient directory
88-
cp ide/Linux-FATFS/fatfs_image.img examples/sftpclient/storage.dat
89-
9086
# Change to the sftpclient directory
9187
cd examples/sftpclient
9288
89+
# Create the FATFS image file directly in the sftpclient directory
90+
dd if=/dev/zero of=fatfs_image.img bs=1M count=32
91+
mkdosfs fatfs_image.img
92+
9393
# Create expect script to automate the wolfsftp client interaction
9494
cat > /tmp/sftp_test.exp << EOF
9595
#!/usr/bin/expect -f

0 commit comments

Comments
 (0)