Hi! > > + rmmod rcutorture > /dev/null 2>&1 > > + if [ $? -ne 0 ]; then > > + tst_brkm TBROK NULL "failed to unload module" > > + exit 2 > > + fi > > + > > + # check module status in dmesg > > + result_str=`dmesg | tail -n 1` > > This is quite fragile, if anything has added a line into dmesg while the > test was running it will fail. Better approach would be to save the > dmesg output into a file and grep it for the rcutorture resutl.
And the best possible solution would be to add a more convinient interface to the module itself, but that would need to be comunicated with kernel upstream. -- Cyril Hrubis [email protected] ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
