Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,23 @@
"permissions": [ "read" ]
}
}
},
{
"prompt-filter": {
"constraints": {
"path": "${BASE_PATH}/foo\\\\\\*\\\\\\?\\(\\)\\\\\\[\\\\\\]\\\\\\{\\\\\\}\\\\\\\\\\\\\\\\",
"path": "${BASE_PATH}/foo\\\\\\*\\\\\\?\\(\\)\\\\\\[\\\\\\]\\\\\\{\\\\\\}\\\\\\\\",
"requested-permissions": [ "read" ]
}
},
"reply": {
"action": "allow",
"lifespan": "single",
"constraints": {
"path-pattern": "${BASE_PATH}/foo\\*\\?()\\[\\]\\{\\}\\\\",
"permissions": [ "read" ]
}
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ echo "$SECOND_CONTENT" | tee "${TEST_DIR}/foo*?()[]{}\\"
echo "Attempt to read the first file"
FIRST_OUTPUT="$(snap run --shell prompt-requester.home -c "cat ${TEST_DIR}/'[アニメ][ゲーム動画].mkv'")"

echo "Skip reading the second file as there's an issue with the prompting-client.scripted parsing the sequence"
# TODO: actually do the second read
#echo "Attempt to read the second file"
#SECOND_OUTPUT="$(snap run --shell prompt-requester.home -c "cat ${TEST_DIR}/'foo*?()[]{}\\'")"
echo "Attempt to read the second file"
SECOND_OUTPUT="$(snap run --shell prompt-requester.home -c "cat ${TEST_DIR}/'foo*?()[]{}\\'")"

# Wait for the client to write its result and exit
for i in $(seq "$TIMEOUT") ; do
Expand All @@ -51,8 +49,7 @@ if [ "$FIRST_OUTPUT" != "$FIRST_CONTENT" ] ; then
exit 1
fi

# TODO: actually check the second output
#if [ "$SECOND_OUTPUT" != "$SECOND_CONTENT" ] ; then
# echo "test script failed"
# exit 1
#fi
if [ "$SECOND_OUTPUT" != "$SECOND_CONTENT" ] ; then
echo "test script failed"
exit 1
fi
Loading