594167
From 740dd8e0a0c503980894968006a43fa05039e299 Mon Sep 17 00:00:00 2001
594167
From: Yu Watanabe <watanabe.yu+github@gmail.com>
594167
Date: Tue, 14 Jun 2022 09:01:00 +0900
594167
Subject: [PATCH] test: drop unnecessary --no-pager option
594167
594167
(cherry picked from commit 8ed2103306fa6b3dcaf8d810e65e8957553ef752)
594167
594167
Related: #2087652
594167
---
594167
 test/units/testsuite-45.sh | 10 +++++-----
594167
 1 file changed, 5 insertions(+), 5 deletions(-)
594167
594167
diff --git a/test/units/testsuite-45.sh b/test/units/testsuite-45.sh
594167
index d0d1ef2eb4..2069d2437f 100755
594167
--- a/test/units/testsuite-45.sh
594167
+++ b/test/units/testsuite-45.sh
594167
@@ -25,7 +25,7 @@ test_timezone() {
594167
 
594167
     if [[ -n "$ORIG_TZ" ]]; then
594167
         echo 'reset timezone to original'
594167
-        assert_eq "$(timedatectl --no-pager set-timezone "$ORIG_TZ" 2>&1)" ""
594167
+        assert_eq "$(timedatectl set-timezone "$ORIG_TZ" 2>&1)" ""
594167
         assert_eq "$(readlink /etc/localtime | sed 's#^.*zoneinfo/##')" "$ORIG_TZ"
594167
     fi
594167
 }
594167
@@ -206,11 +206,11 @@ EOF
594167
     timedatectl set-ntp false
594167
     for ((i=0;i<10;i++)); do
594167
         if (( i != 0 )); then sleep 1; fi
594167
-        if [[ "$(systemctl --no-pager show systemd-timesyncd --property ActiveState)" == "ActiveState=inactive" ]]; then
594167
+        if [[ "$(systemctl show systemd-timesyncd --property ActiveState)" == "ActiveState=inactive" ]]; then
594167
             break;
594167
         fi
594167
     done
594167
-    assert_eq "$(systemctl --no-pager show systemd-timesyncd --property ActiveState)" "ActiveState=inactive"
594167
+    assert_eq "$(systemctl show systemd-timesyncd --property ActiveState)" "ActiveState=inactive"
594167
     assert_ntp "false"
594167
     assert_rc 3 systemctl is-active --quiet systemd-timesyncd
594167
 
594167
@@ -221,11 +221,11 @@ EOF
594167
     assert_ntp "true"
594167
     for ((i=0;i<10;i++)); do
594167
         if (( i != 0 )); then sleep 1; fi
594167
-        if [[ "$(systemctl --no-pager show systemd-timesyncd --property ActiveState)" == "ActiveState=active" ]]; then
594167
+        if [[ "$(systemctl show systemd-timesyncd --property ActiveState)" == "ActiveState=active" ]]; then
594167
             break;
594167
         fi
594167
     done
594167
-    assert_eq "$(systemctl --no-pager show systemd-timesyncd --property ActiveState)" "ActiveState=active"
594167
+    assert_eq "$(systemctl show systemd-timesyncd --property ActiveState)" "ActiveState=active"
594167
     assert_rc 0 systemctl is-active --quiet systemd-timesyncd
594167
 
594167
     echo 're-disable NTP'