[LTP] [RFC] [PATCH] tst_kvcmp: Add support for extra kernel versions

Cyril Hrubis chrubis@suse.cz
Wed Apr 26 17:06:41 CEST 2017


Hi!
> > Jan can you please check that everything works fine when specifying extra
> > version on RHEL? It seems that the only systems that are supported by extra
> > kernel versions are RHEL5 and RHEL6 at the moment.
> 
> Should we print an error also if invalid distro is passed as parameter?

That would need a table of known distros stored into the tst_kvercmp.c
and function to validate a distribution name, or do I miss something?

I guess that we can rewrite the code so that the kernel version
substring and distro name are stored in an array of structures and loop
over it so that we can say if it's valid or not but I'm not sure that
it's worth the work.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list