summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-04-11 21:54:00 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-04-22 22:05:57 +0100
commit3615085315fbe94ece5c4be60ccb53a1cb077ae8 (patch)
treec2fd2bb16ec4eb9c2acbece45f8e54820c61d8ba
parent50da7ea19f8fd9ec9a96cdde4c17fbe91e834c03 (diff)
downloadpoky-3615085315fbe94ece5c4be60ccb53a1cb077ae8.tar.gz
oeqa/postactions: Do not use -l option with df
-l option is specific to df provided by coreutils, if df applet from busybox is used then it does not work and fails like below Fixes df: invalid option -- 'l' BusyBox v1.36.1 () multi-call binary. Usage: df [-PkmhT] [-t TYPE] [FILESYSTEM]... DEBUG: [Command returned '1' after 0.71 seconds] DEBUG: Command: df -hl Status: 1 Output: df: invalid option -- 'l' it seems worth a compromise to show remote mounted filesystems if any during ptests and it works with both df implementations (From OE-Core rev: 38b9d1166c8da6feb245a6f897149376075a5443) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/utils/postactions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/postactions.py b/meta/lib/oeqa/utils/postactions.py
index 8104400ac2..ecdddd2d40 100644
--- a/meta/lib/oeqa/utils/postactions.py
+++ b/meta/lib/oeqa/utils/postactions.py
@@ -25,7 +25,7 @@ def create_artifacts_directory(d, tc):
25def get_target_disk_usage(d, tc): 25def get_target_disk_usage(d, tc):
26 output_file = os.path.join(get_json_result_dir(d), "artifacts", "target_disk_usage.txt") 26 output_file = os.path.join(get_json_result_dir(d), "artifacts", "target_disk_usage.txt")
27 try: 27 try:
28 (status, output) = tc.target.run('df -hl') 28 (status, output) = tc.target.run('df -h')
29 with open(output_file, 'w') as f: 29 with open(output_file, 'w') as f:
30 f.write(output) 30 f.write(output)
31 f.write("\n") 31 f.write("\n")