]> gitweb.fluxo.info Git - trashman.git/commitdiff
Updates test procedure
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 12 Nov 2017 12:06:17 +0000 (10:06 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 12 Nov 2017 12:06:17 +0000 (10:06 -0200)
share/trashman/docker/unix/linux/debian/check
trashman

index 0f8422973c2a3c97c8855aad7b6e12a75e3e7c96..60574a74838c6c957e9a8eb0ce5c56e8a1114c04 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env sh
 #
-# Test if docker is installed system-wide.
+# Check if docker is installed system-wide.
 #
 
 # Parameters
index 43d8c567b211ed2a47f093dfc528c9592b823449..89546b61c7435e5b3927dfe3721fa9a6e996d2d2 100755 (executable)
--- 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