31 Commits

Author SHA1 Message Date
Michał Iwanicki
ef667ec7b2 Use ask_for_confirmation function when asking for user choice
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2025-09-29 15:50:54 +02:00
Michał Iwanicki
3d0083aae3 dts-functions & dasharo-hcl-report: replace minio prints with 3mdeb
Users don't care or even know about implementation details

Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2025-09-24 11:16:29 +02:00
Mateusz Kusiak
2652858a6e hcl-report: Add FIXMEs for enforced unknows
3 tasks in hcl report logic are enforced to finish with UNKNOWN status,
due to the fact they not produce single STDERR and STDOUT logs. The
issues have been submitted. Link those issues in the source code.

Signed-off-by: Mateusz Kusiak <mateusz.kusiak@3mdeb.com>
2025-09-11 15:28:47 +02:00
Mateusz Kusiak
0f98325574 hcl-report: Add dynamic progress bar
The current progress bar implementation disallows for easy moving tasks
around and adding or removing them. Implement dynamic progress bar,
so the tasks can be easily altered.

Signed-off-by: Mateusz Kusiak <mateusz.kusiak@3mdeb.com>
2025-09-11 14:54:11 +02:00
Mateusz Kusiak
f00b6782db reports: enforce UNKNOWN keyword
The logic for checking if test should fail by default is reversed, thus
all passes or errors are treated as unknowns. Enforce checking the
keyword "UNKNOWN" for the tests.

Fixes:
https://github.com/Dasharo/dasharo-issues/issues/1304

Signed-off-by: Mateusz Kusiak <mateusz.kusiak@3mdeb.com>
2025-09-10 16:10:48 +02:00
Pawel Langowski
39021f596c Fix files to conform to shfmt
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2025-04-15 14:48:13 +02:00
Pawel Langowski
9439fc3bea Add .sh to all scripts
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2025-04-15 14:31:13 +02:00
Pawel Langowski
07d1953f4d Fix indentation and error messages
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2025-03-24 14:03:56 +01:00
Pawel Langowski
33060738cc Don't create minio alias when DPP email is empty
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2025-03-24 12:56:42 +01:00
Pawel Langowski
fb01744bc5 Add public MinIO credentials for HCL reports
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2025-03-24 11:32:24 +01:00
Pawel Langowski
7813db0696 Use MinIO for HCL reports
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2025-03-21 10:18:17 +01:00
Daniil Klimuk
f0ff464694 Make functions in HCL Report not to exit
HCL report collects information, if smth is missing or not working - it
still should be collected by HCL report. Therefore there should be no
exit on error inside HCL report.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2025-01-15 17:15:47 +01:00
Daniil Klimuk
e69ca6c8a4 reports: dasharo-hcl-report: mock checking for sound card presence
This loop takes too much time during tests (5s * 12 = 1m). The sound
card presence should be mocked to true by default to optimize HCL report
execution time.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2025-01-15 14:29:12 +01:00
Michał Iwanicki
9e678e52eb logging: redirect more stderr to ERR_LOG_FILE
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2025-01-10 10:56:53 +01:00
Michał Iwanicki
3d395cabc9 logs: pipe stderr to ERR_LOG_FILE
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2025-01-10 10:56:52 +01:00
Michał Iwanicki
417100811e dasharo-hcl-report: fix acpidump command
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2024-12-18 11:59:56 +01:00
Daniil Klimuk
55256f51e5 do not use flashrom with QEMU
flashrom does not support QEMU and fails every time. I have not found a
better way to handle it, but we should not place hardwere related
configs all around the code.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:47 +01:00
Daniil Klimuk
6d53e2cf05 integrate HAL
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:17:36 +01:00
Daniil Klimuk
61f68f01b0 remove -x flag from all files permissions
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:38 +01:00
Daniil Klimuk
cee2d5b41f use test -n instead of test -v
"test -v" checks whether a variable has been declared, it does not check
its value. We sometimes use "unset" for some variables, and then check
again with "test -v". The problem is, "unset" erases variable value, but
the variable still exists, so the "test -v" will be true before, as well
as after the "unset".

We must use "test -n" (whether a variable holds non-zero length
string value) and "test -z" (whether a variable holds zero length string
value) to check string values of variables. This way the "unset" will
work.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:36 +01:00
Daniil Klimuk
cb60fb22fa reports: dasharo-hcl-report: delete surplus definition
CMD_DASHARO_DEPLOY is already defined in /usr/sbin/dts-environment.sh
which is included at the beginning of the dasharo-hcl-report script.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:25:43 +01:00
Michał Iwanicki
a5f6ef7711 dasharo-hcl-report: add /sys/kernel/debug/dri/*/*_vbt to logs
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2024-11-12 16:48:36 +01:00
Pawel Langowski
05b7c26ef3 reports/dasharo-hcl-report: Get cbmem console
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2024-11-06 14:24:17 +01:00
Maciej Pijanowski
084d27d939 tests: port from meta-dts
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2024-07-25 22:22:33 +02:00
Daniil Klimuk
db23885453 Use DPP instead of DES
According to:
https://github.com/Dasharo/presentations/blob/main/dug_6_shameless_plug.md#dasharo-cooperation-models

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-07-22 16:52:27 +02:00