Hi,

On 07/15/2014 05:50 PM, chru...@suse.cz wrote:
> Hi!
>>
>>      for ((i = 1; i <= 3; i++))
>>      {
>>              if ! command -v fallocate0${i} > /dev/null 2>&1; then
>> @@ -56,13 +57,15 @@ ext4_test_persist_prealloc()
>>                      return
>>              fi
>>  
>> -            fallocate0${i} | grep -q "CONF"
>> +            TMPDIR=mnt_point; fallocate0${i} | grep -q "CONF"
>>              if [ $? -ne $ret ]; then
>>                      tst_resm TFAIL "fallocate's return value is not 
>> expected"
>>                      umount mnt_point
>> +                    TMPDIR=$temp_tmpdir
>>                      return
>>              fi
>>      }
>> +    TMPDIR=$temp_tmpdir
> 
> I've moved the TMPDIR restoration closer to the fallocate call so it's
> now:
> 
> +               temp_tmpdir=$TMPDIR
> +               TMPDIR=mnt_point; fallocate0${i} | grep -q "CONF"
> +               TMPDIR=$temp_tmpdir
> 
> 
> And pushed, thanks.
> 
> PS: Sorry for the delay.
That's OK :)

Regards,
Xiaoguang Wang
> 


------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to