From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1pli0y-0007Li-Ot for mharc-grub-devel@gnu.org; Sun, 09 Apr 2023 23:16:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pli0x-0007LX-Ci for grub-devel@gnu.org; Sun, 09 Apr 2023 23:16:19 -0400 Received: from mail-qv1-xf36.google.com ([2607:f8b0:4864:20::f36]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pli0v-0001az-Go for grub-devel@gnu.org; Sun, 09 Apr 2023 23:16:19 -0400 Received: by mail-qv1-xf36.google.com with SMTP id lz6so2685265qvb.6 for ; Sun, 09 Apr 2023 20:16:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20210112.gappssmtp.com; s=20210112; t=1681096575; x=1683688575; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=WeQ1kF+ujEDslNmtdvGF929W0wh9/EKWECQqj73ZhQg=; b=0nTSdSjG3cFtE0gye4abQHXY9PS+VqdciRofIiM4eWRk6JVaQevYIntdwPJVpLIWAn PLXHmThVT4puhZY1LjvHdS6XdR6Ob7rkCGIqwt2DsPxQyRkItDqDCgm0nleFVoX+obgX cerEERrwTG9dJ2eyo4WVDqLf/wqMticvGtzMI6Mh1u5WTtRTiKnG5KfkjAFKbqXCv2JR vN42EQctfLYqrsQWyz8rvH+XxCoxGemu7+cEDWkBWAFVoqLB9HAgqxe23wFuLKXmqL/T LhAtiAXNeUA68euUmgL1uomKiF4tIpeZZg3WFuFdPSWqn047OeKzAvaiwOIoAOubK6+n BG7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681096575; x=1683688575; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WeQ1kF+ujEDslNmtdvGF929W0wh9/EKWECQqj73ZhQg=; b=AkgiRpdNOKQXXQB5AGplMtHrklmsyjSxhVGIZQeVtzEkK+J+E+Bc77o0nivoV2ttp/ GmxGBiSTU6I6+AcR2aENc9mtQ4xOwVs3CC6I5ktZRTPyC7qmR3O5/sMR4zF0OaXDF91q LBKVkZ5lzZv1Pd/5H6JMp31N+oob3sFiTNM4JGfeMqQTqXJ2upydlG9q31LC4D6QspOl KoqqPsSvSMkQpJbxtXeNIw/QLeWJkEka5HffYszsU/iwSorM6fBRxHz63KKQXRox+0xS jQGXlM4pyMfEK3AXeobnchLhTcA1x+/HIMOMLD1MjwfKhHT4YBOwUj9SL5Jf2OosQh0g lxmw== X-Gm-Message-State: AAQBX9eb/9iH7m7OSqAUexea/RAcblcwgnlld5fcgbQLNjrRQHiW810F yZFUmxNK684/ASThkS7rvDcDJEKrWIKqZmgAHpE1cQ== X-Google-Smtp-Source: AKy350ZysU7qzJ7VmkNNi3Kl3GOhkopI9ilhoU6Fi5nGachmMp6xM546s+/12ha63ViyKkDreTqPow== X-Received: by 2002:a05:6214:4103:b0:5e0:2d2a:33d5 with SMTP id kc3-20020a056214410300b005e02d2a33d5mr16959681qvb.39.1681096574978; Sun, 09 Apr 2023 20:16:14 -0700 (PDT) Received: from ubuntu.. ([37.218.244.251]) by smtp.gmail.com with ESMTPSA id u6-20020ad44986000000b005e64155d51csm3062419qvx.93.2023.04.09.20.16.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Apr 2023 20:16:14 -0700 (PDT) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Glenn Washburn Subject: [PATCH] tests/util/grub-fs-tester: Add missing redirect to /dev/null Date: Mon, 10 Apr 2023 03:15:57 +0000 Message-Id: <20230410031557.896101-1-development@efficientek.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::f36; envelope-from=development@efficientek.com; helo=mail-qv1-xf36.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2023 03:16:19 -0000 In filesystem timestamp test, a check is done to verify that the timestamp for a file as reported in Linux by the filesystem is within a few seconds of the timestamp as reported by GRUB. This is done by grepping the output of GRUB's ls command for the timestamp as reported by the filesystem in Linux and for each of 3 seconds past that timestamp. All of these checks except one redirect the output of grep to /dev/null. Fix this exception to behave as the other checks. Signed-off-by: Glenn Washburn --- tests/util/grub-fs-tester.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/util/grub-fs-tester.in b/tests/util/grub-fs-tester.in index 064464eb2..9cc6b5811 100644 --- a/tests/util/grub-fs-tester.in +++ b/tests/util/grub-fs-tester.in @@ -1465,7 +1465,7 @@ for LOGSECSIZE in $(range "$MINLOGSECSIZE" "$MAXLOGSECSIZE" 1); do FSTIMEM2="$(date -d "$FSTIME UTC -2 second" -u "+%Y-%m-%d %H:%M:%S")" FSTIMEM3="$(date -d "$FSTIME UTC -3 second" -u "+%Y-%m-%d %H:%M:%S")" - if echo "$LSOUT" | grep -F 'Last modification time '"$FSTIME" > /dev/null || echo "$LSOUT" | grep -F 'Last modification time '"$FSTIMEM1" > /dev/null || echo "$LSOUT" | grep -F 'Last modification time '"$FSTIMEM2" || echo "$LSOUT" | grep -F 'Last modification time '"$FSTIMEM3" > /dev/null; then + if echo "$LSOUT" | grep -F 'Last modification time '"$FSTIME" > /dev/null || echo "$LSOUT" | grep -F 'Last modification time '"$FSTIMEM1" > /dev/null || echo "$LSOUT" | grep -F 'Last modification time '"$FSTIMEM2" > /dev/null || echo "$LSOUT" | grep -F 'Last modification time '"$FSTIMEM3" > /dev/null; then : else echo FSTIME FAIL -- 2.34.1