From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Stancek Date: Tue, 22 Oct 2019 03:10:23 -0400 (EDT) Subject: [LTP] [PATCH] lsmod01.sh: retry test couple times to lower false positives In-Reply-To: <20191018134525.GA2589@dell5510> References: <20191018134525.GA2589@dell5510> Message-ID: <1931638600.8070217.1571728223473.JavaMail.zimbra@redhat.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it ----- Original Message ----- > Hi Jan, > > ... > > if [ "$lsmod_output" != "$modules_output" ]; then > > - tst_res TFAIL "lsmod output different from /proc/modules." > > + tst_res TINFO "lsmod output different from /proc/modules." > > > echo "$lsmod_output" > temp1 > > echo "$modules_output" > temp2 > > diff temp1 temp2 > Also this code could be wrapped with > if tst_cmd_available diff; then Added this as well and pushed.