Commit e6d21f9
committed
autotailor: Add --local-path option for layered product compatibility
Add a new --local-path flag that generates benchmark references using
local paths instead of absolute file:// URIs. This enables compatibility
with Red Hat Satellite and other layered products that cannot resolve
local filesystem paths.
When --local-path is specified:
- Absolute paths are converted to basename only
- Relative paths are preserved as provided by the user
The default behavior remains unchanged for backward compatibility.
Changes based on code review feedback:
- Renamed option from --relative-path to --local-path for clarity
(the name better reflects that absolute paths become basenames)
- Extracted URI determination logic to _get_datastream_uri() method
to improve code organization and readability
- Added comprehensive documentation to autotailor.8 man page
- Added unit tests for _get_datastream_uri() method
- Added integration tests for --local-path functionality
Resolves: RHEL-1435681 parent 0913348 commit e6d21f9
File tree
4 files changed
+70
-2
lines changed- tests/utils
- utils
4 files changed
+70
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| 306 | + | |
306 | 307 | | |
307 | 308 | | |
308 | 309 | | |
| |||
318 | 319 | | |
319 | 320 | | |
320 | 321 | | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
321 | 342 | | |
322 | 343 | | |
323 | 344 | | |
324 | 345 | | |
325 | | - | |
326 | | - | |
| 346 | + | |
327 | 347 | | |
328 | 348 | | |
329 | 349 | | |
| |||
436 | 456 | | |
437 | 457 | | |
438 | 458 | | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
439 | 463 | | |
440 | 464 | | |
441 | 465 | | |
| |||
452 | 476 | | |
453 | 477 | | |
454 | 478 | | |
| 479 | + | |
455 | 480 | | |
456 | 481 | | |
457 | 482 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
77 | 84 | | |
78 | 85 | | |
79 | 86 | | |
| |||
0 commit comments