Skip to content

Commit

Permalink
Extra checks for file
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed Dec 25, 2023
1 parent cdb23eb commit d624461
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,20 @@ jobs:
echo "src/gz local-rmall file:///opt/tmp/src" > /opt/etc/opkg.conf.d/16-local.conf
run: |
set -ex
if [ -f /foo ]; then
echo "::error::/foo found before package installed!"
exit 1
fi
echo Y | toltecctl generate-opkg-conf
opkg update
opkg install foo
if ! [ -f /foo ]; then
echo "/foo not found!"
echo "::error::/foo not found after package install!"
exit 1
fi
opkg remove foo
if [ -f /foo ]; then
echo "::error::/foo found after package removed!"
exit 1
fi
path: ${{ steps.download.outputs.download-path }}

0 comments on commit d624461

Please sign in to comment.