Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ufs/tpmi_ufs.sh: Fix possible false results when driver sysfs does no…
…t exist If the kernel is built without CONFIG_INTEL_UNCORE_FREQ_CONTROL enabled, the driver sysfs path won't exist, so the tests are expected to fail, but actually it gives PASS results: <<<test start - 'tpmi_ufs.sh -t check_ufs_init_min_max_value'>> ls: cannot access '/sys/devices/system/cpu/intel_uncore_frequency': No such file or directory |1214_133318.071|TRACE|Uncore number: 0| <<<test end, result: PASS, duration: 0.032>> <<<test start - 'tpmi_ufs.sh -t check_ufs_min_equals_to_max'>> ls: cannot access '/sys/devices/system/cpu/intel_uncore_frequency': No such file or directory <<<test end, result: PASS, duration: 0.030>> <<<test start - 'tpmi_ufs.sh -t check_ufs_max_equals_to_min'>> ls: cannot access '/sys/devices/system/cpu/intel_uncore_frequency': No such file or directory <<<test end, result: PASS, duration: 0.031>> <<<test start - 'tpmi_ufs.sh -t check_ufs_current_dynamic'>> ls: cannot access '/sys/devices/system/cpu/intel_uncore_frequency': No such file or directory <<<test end, result: PASS, duration: 0.030>> After CONFIG_INTEL_UNCORE_FREQ_CONTROL being enabled in the kernel, if the uncore number is 0, the tests are not done, either, so it is expected to be shown as BLOCK instead of PASS. <<<test start - 'tpmi_ufs.sh -t check_ufs_init_min_max_value'>> |0122_044137.087|TRACE|Uncore number: 0| <<<test end, result: PASS, duration: 0.099>> <<<test start - 'tpmi_ufs.sh -t check_ufs_min_equals_to_max'>> <<<test end, result: PASS, duration: 0.089>> <<<test start - 'tpmi_ufs.sh -t check_ufs_max_equals_to_min'>> <<<test end, result: PASS, duration: 0.091>> <<<test start - 'tpmi_ufs.sh -t check_ufs_current_dynamic'>> <<<test end, result: PASS, duration: 0.099>> Reported-by: kernel test robot <[email protected]> Signed-off-by: Yujie Liu <[email protected]>
- Loading branch information