diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-11-12 10:06:17 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-11-12 10:06:17 -0200 |
commit | 3e41cab172f7ce3bf9a31e348e15c87ed1ab816e (patch) | |
tree | 23ba0666901108563c8917b3aa7a6948f73c5d95 | |
parent | b1f51b5b0c1321e4fa039961d60ae5b1c391808c (diff) | |
download | trashman-3e41cab172f7ce3bf9a31e348e15c87ed1ab816e.tar.gz trashman-3e41cab172f7ce3bf9a31e348e15c87ed1ab816e.tar.bz2 |
Updates test procedure
-rwxr-xr-x | share/trashman/docker/unix/linux/debian/check | 2 | ||||
-rwxr-xr-x | trashman | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/share/trashman/docker/unix/linux/debian/check b/share/trashman/docker/unix/linux/debian/check index 0f84229..60574a7 100755 --- a/share/trashman/docker/unix/linux/debian/check +++ b/share/trashman/docker/unix/linux/debian/check @@ -1,6 +1,6 @@ #!/usr/bin/env sh # -# Test if docker is installed system-wide. +# Check if docker is installed system-wide. # # Parameters @@ -95,6 +95,14 @@ else __trashman_echo "Package $package is partially installed system-wide" fi fi + + if [ "$ACTION" = "test" ]; then + if [ "$status" = "0" ]; then + __trashman_echo "Package $package is running as expected" + elif [ "$status" = "1" ]; then + __trashman_echo "Package $package is not running as expected" + fi + fi else __trashman_echo "No such action $ACTION for package $package, skipping" fi |