lsmem: Fix specified --output columns with JSON print

This commit is contained in:
Foorack
2025-02-09 12:19:40 +01:00
parent 89eeb23806
commit 58b6b85a8f
4 changed files with 46 additions and 17 deletions

View File

@@ -26,14 +26,13 @@ fn test_invalid_arg() {
new_ucmd!().arg("--definitely-invalid").fails().code_is(1);
}
// FAILS, COMMENT FOR NOW - TODO
// #[test]
// fn test_columns_json() {
// sysroot_test_with_args(
// "test_lsmem_columns_json.expected",
// &["-o", "block,size", "-J"],
// );
// }
#[test]
fn test_columns_json() {
sysroot_test_with_args(
"test_lsmem_columns_json.expected",
&["-o", "block,size", "-J"],
);
}
#[test]
fn test_columns_pairs() {