]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
config: Fix setting FSTYP automatically
authorLukas Czerner <lczerner@redhat.com>
Tue, 8 Apr 2014 23:55:52 +0000 (09:55 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 8 Apr 2014 23:55:52 +0000 (09:55 +1000)
commite0f5daf3710778862c8ab88679ae3b8e9bc64cf1
treebad45595be8ae01b3d6b6fb2c0858eaf7e834d89
parent7407717466e6281cbcbba01e3df709f9ee153d31
config: Fix setting FSTYP automatically

Currently if the FSTYP is not set, the code to get FSTYP using blikd
would not work. This is because we're using HOSTOS environment variable
which might not be set (at least not on my system) and because it's
already late in the code path.

Fix this by using OSTYP environment variable as a fallback in the case
that HOSTOS does not work and move the check to common/config.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Tested-by: Filipe David Manana <fdmanana@gmail.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
check
common/config