Message ID | 20240228164135.330690-1-alexis.lothore@bootlin.com |
---|---|
State | Accepted, archived |
Commit | da7cc5def2839a0e15d07244f858847479c12caa |
Headers | show |
Series | oeqa/lib/utils/postactions: fix host disk usage stats retrieval | expand |
diff --git a/meta/lib/oeqa/utils/postactions.py b/meta/lib/oeqa/utils/postactions.py index 03cecdc21578..8104400ac258 100644 --- a/meta/lib/oeqa/utils/postactions.py +++ b/meta/lib/oeqa/utils/postactions.py @@ -38,7 +38,7 @@ def get_host_disk_usage(d, tc): output_file = os.path.join(get_json_result_dir(d), "artifacts", "host_disk_usage.txt") try: with open(output_file, 'w') as f: - output = subprocess.run(['/usr/bin/df', '-hl'], check=True, text=True, stdout=f) + output = subprocess.run(['df', '-hl'], check=True, text=True, stdout=f, env={}) except Exception as e: bb.warn(f"Can not get host disk usage: {e}")