packaging: tests: Do not try reboot machine to ensure proper dlog config 48/181648/2
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Fri, 15 Jun 2018 08:44:23 +0000 (10:44 +0200)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Fri, 15 Jun 2018 09:13:03 +0000 (11:13 +0200)
Installing dlog-tests package intentionally breaks
dlog setup for normal use case, but system should
not be rebooted without user consent.  Rebooting
in %post might potentially make RPM db inconsistent
and impact other pending rpm actions.

Change-Id: I95e7eb0fcf6f12ff20c0bfaa6699e476793e4a4b

packaging/dlog.spec

index ce53c72..51b5cb2 100644 (file)
@@ -227,12 +227,3 @@ echo "This is done intentionally, to make logger backend testing possible."
 echo "To restore normal behavior, please uninstall dlog-tests package."
 echo ""
 echo "A reboot is required to properly configure logger backend for testing."
-secs=15
-while [ $secs -gt 0 ]; do
-   echo -ne "Will reboot in $secs\033[0K\r"
-   sleep 1
-   : $((secs--))
-done
-sleep 1
-echo -e "Rebooting target."
-reboot