This imposes a deterministic ordering, making diffs more predictable
and allowing reproducible testing.
* src/abg-tools-utils.cc (get_binary_paths_from_kernel_dist):
Sort module_paths.
Signed-off-by: Giuliano Procida <gprocida@google.com>
/// binary that was found.
///
/// @param module_paths output parameter. The paths of the kernel
-/// module binaries that were found.
+/// module binaries that were found, sorted to impose a deterministic
+/// ordering.
///
/// @return true if at least the path to the vmlinux binary was found.
bool
if (find_vmlinux_and_module_paths(from, vmlinux_path, module_paths))
found = true;
+ std::sort(module_paths.begin(), module_paths.end());
+
return found;
}