From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petr Vorel Date: Thu, 18 Jul 2019 08:38:51 +0200 Subject: [LTP] [PATCH] tst_test.sh: Use $LTP_TIMEOUT_MUL also in TST_RETRY_FN_EXP_BACKOFF() In-Reply-To: References: <20190712134328.20528-1-pvorel@suse.cz> Message-ID: <20190718063851.GA22263@dell5510> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi Li, > Hi Petr, > If timeout occurred in the exp backoff macro, we could pass a bit more time > to it and use prototype directly. > e.g. TST_RETRY_FN_EXP_BACKOFF "$1" "$2" "more_time" > And yes, we actually can't guarantee a proper time value for all kinds of > platforms. So I agree on involve $LTP_TIMEOUT_MUL to exp backoff macro. > Btw, shouldn't we also apply this change to the C prototype too? > On Fri, Jul 12, 2019 at 9:43 PM Petr Vorel wrote: Yes, you're right. > > ... > - tst_brk TBROK "\"$tst_fun\" timed out" > > + tst_brk TBROK "\"$tst_fun\" timed out! If you are > > running on slow machine, try exporting LTP_TIMEOUT_MUL" > "..., try exporting LTP_TIMEOUT_MUL > 1" ? Yes, that's better description. => I'll prepare v2. Kind regards, Petr