fix: check files using abs path

(the docker user is changed due to feat-ssh pr)
This commit is contained in:
wancat committed 2025-02-15 20:42:50 +08:00
1 parent fab02d03a9
commit 6692ae2b9b
4 files changed
+28 -28

No files matched your search

+4 -4
View File
@@ -164,7 +164,7 @@ stages:
command: command:
- ^cp hello.txt hello2.txt$ - ^cp hello.txt hello2.txt$
files: files:
- path: hello2.txt - path: /home/commander/hello2.txt
type: file type: file
exceptions: exceptions:
- condition: - condition:
@@ -224,7 +224,7 @@ stages:
command: command:
- ^cp world.txt world2.txt$ - ^cp world.txt world2.txt$
files: files:
- path: world2.txt - path: /home/commander/world2.txt
type: file type: file
exceptions: exceptions:
- condition: - condition:
@@ -292,9 +292,9 @@ stages:
command: command:
- ^cp - ^cp
files: files:
- path: notes2 - path: /home/commander/notes2
type: directory type: directory
- path: notes2/note.txt - path: /home/commander/notes2/note.txt
type: file type: file
exceptions: exceptions:
- condition: - condition:
+6 -6
View File
@@ -44,12 +44,12 @@ stages:
- ls - ls
condition: condition:
files: files:
- path: hello.txt - path: /home/commander/hello.txt
type: file type: file
exceptions: exceptions:
- condition: - condition:
files: files:
- path: hello$ - path: /home/commander/hello
type: file type: file
responses: responses:
- type: narrative - type: narrative
@@ -107,12 +107,12 @@ stages:
- ls-touch - ls-touch
condition: condition:
files: files:
- path: world.txt - path: /home/commander/world.txt
type: file type: file
exceptions: exceptions:
- condition: - condition:
files: files:
- path: world$ - path: /home/commander/world
type: file type: file
responses: responses:
- type: narrative - type: narrative
@@ -154,7 +154,7 @@ stages:
- ls-2 - ls-2
condition: condition:
files: files:
- path: notes - path: /home/commander/notes
type: folder type: folder
responses: responses:
- type: narrative - type: narrative
@@ -203,7 +203,7 @@ stages:
- cd-notes - cd-notes
condition: condition:
files: files:
- path: notes/note.txt - path: /home/commander/notes/note.txt
type: file type: file
responses: responses:
- type: narrative - type: narrative
+8 -8
View File
@@ -49,9 +49,9 @@ stages:
command: command:
- ^mv hello.txt notes$ - ^mv hello.txt notes$
files: files:
- path: notes/hello.txt - path: /home/commander/notes/hello.txt
type: file type: file
- path: hello.txt - path: /home/commander/hello.txt
exists: false exists: false
responses: responses:
- type: narrative - type: narrative
@@ -106,9 +106,9 @@ stages:
command: command:
- ^mv - ^mv
files: files:
- path: wow.txt - path: /home/commander/wow.txt
type: file type: file
- path: world.txt - path: /home/commander/world.txt
exists: false exists: false
responses: responses:
- type: narrative - type: narrative
@@ -148,9 +148,9 @@ stages:
command: command:
- ^mv - ^mv
files: files:
- path: docs - path: /home/commander/docs
type: directory type: directory
- path: notes - path: /home/commander/notes
exists: false exists: false
responses: responses:
- type: narrative - type: narrative
@@ -187,9 +187,9 @@ stages:
command: command:
- ^mv - ^mv
files: files:
- path: hi.txt - path: /home/commander/hi.txt
type: file type: file
- path: docs/hello.txt - path: /home/commander/docs/hello.txt
exists: false exists: false
exceptions: exceptions:
- condition: - condition:
+10 -10
View File
@@ -44,7 +44,7 @@ stages:
command: command:
- ^rm\s - ^rm\s
files: files:
- path: hello.txt - path: /home/commander/hello.txt
exists: false exists: false
responses: responses:
- content: | - content: |
@@ -58,7 +58,7 @@ stages:
command: command:
- ^ls$ - ^ls$
files: files:
- path: hello.txt - path: /home/commander/hello.txt
exists: false exists: false
responses: responses:
- content: | - content: |
@@ -78,9 +78,9 @@ stages:
command: command:
- ^rm - ^rm
files: files:
- path: world.txt - path: /home/commander/world.txt
exists: false exists: false
- path: wow.txt - path: /home/commander/wow.txt
exists: false exists: false
responses: responses:
- content: | - content: |
@@ -111,7 +111,7 @@ stages:
command: command:
- ^rmdir empty$ - ^rmdir empty$
files: files:
- path: empty - path: /home/commander/empty
exists: false exists: false
responses: responses:
- content: | - content: |
@@ -139,7 +139,7 @@ stages:
command: command:
- ^rmdir notes$ - ^rmdir notes$
files: files:
- path: notes - path: /home/commander/notes
type: folder type: folder
exists: true exists: true
responses: responses:
@@ -161,10 +161,10 @@ stages:
command: command:
- ^rm - ^rm
files: files:
- path: notes - path: /home/commander/notes
type: folder type: folder
exists: true exists: true
- path: notes/note.txt - path: /home/commander/notes/note.txt
exists: false exists: false
exceptions: exceptions:
- condition: - condition:
@@ -203,7 +203,7 @@ stages:
task: 使用 `rmdir` 刪除 `notes` 資料夾 task: 使用 `rmdir` 刪除 `notes` 資料夾
condition: condition:
files: files:
- path: notes - path: /home/commander/notes
exists: false exists: false
responses: responses:
- content: | - content: |
@@ -238,7 +238,7 @@ stages:
command: command:
- ^rm -r trash$ - ^rm -r trash$
files: files:
- path: trash - path: /home/commander/trash
exists: false exists: false
responses: responses:
- content: | - content: |