]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
oeqa/postactions: Do not use -l option with df
authorKhem Raj <raj.khem@gmail.com>
Fri, 12 Apr 2024 04:54:00 +0000 (21:54 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 23 Apr 2024 12:33:46 +0000 (13:33 +0100)
commit75cc1ea4348a2294fdc5ab20530fcff27056ff06
treedd606c4e7b7f27a52cb5fd67027345677fa7d248
parent9c36a61e29359067165bddc7f2accdf2c4c8a761
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

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/lib/oeqa/utils/postactions.py