fstests: _require_chattr() must get an input arg
authorAmir Goldstein <amir73il@gmail.com>
Thu, 6 Apr 2017 05:49:18 +0000 (08:49 +0300)
committerEryu Guan <eguan@redhat.com>
Fri, 7 Apr 2017 05:11:56 +0000 (13:11 +0800)
commite1a49994e57927013f116b13dd8a79dbb3ed01a4
treea6d08cf646fb463994dec020cd22049858fe73f1
parent073b2def71ff50089c166c3f0335054a97b8567c
fstests: _require_chattr() must get an input arg

_require_chattr() was never intended to be called without an input
argument (specifiying the required attribute to set).

However, calling it without input arguments did work and error
was silently discarded into full test output.

Fix the function to abort on missing input argument and fix the
only test that called _require_chattr() with no input argument.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/rc
tests/overlay/027