aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-11-12 10:06:17 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-11-12 10:06:17 -0200
commit3e41cab172f7ce3bf9a31e348e15c87ed1ab816e (patch)
tree23ba0666901108563c8917b3aa7a6948f73c5d95
parentb1f51b5b0c1321e4fa039961d60ae5b1c391808c (diff)
downloadtrashman-3e41cab172f7ce3bf9a31e348e15c87ed1ab816e.tar.gz
trashman-3e41cab172f7ce3bf9a31e348e15c87ed1ab816e.tar.bz2
Updates test procedure
-rwxr-xr-xshare/trashman/docker/unix/linux/debian/check2
-rwxr-xr-xtrashman8
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
diff --git a/trashman b/trashman
index 43d8c56..89546b6 100755
--- a/trashman
+++ b/trashman
@@ -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