Skip to content

Commit

Permalink
tests/lib/snaps/test-snapd-sh: add cmd command
Browse files Browse the repository at this point in the history
So that we don't have to deal with silly quoting when calling test-snapd-sh.sh.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
  • Loading branch information
bboozzoo authored and anonymouse64 committed Jan 12, 2021
1 parent e544986 commit 0b206e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/lib/snaps/test-snapd-sh/bin/cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
PS1='$ '
command="$1"
shift

exec "$command" "$@"
2 changes: 2 additions & 0 deletions tests/lib/snaps/test-snapd-sh/meta/snap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ version: 1.0
apps:
sh:
command: bin/sh
cmd:
command: bin/cmd

0 comments on commit 0b206e1

Please sign in to comment.