mirror of https://github.com/xemu-project/xemu.git
acpi: bios-tables-test: show more context on asl diffs
Makes it easier to create good commit messages from the logs. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20200619091905.21676-3-kraxel@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
48fedfd7dd
commit
b20fdf2cc3
|
@ -469,7 +469,7 @@ static void test_acpi_asl(test_data *data)
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
if (getenv("V")) {
|
if (getenv("V")) {
|
||||||
const char *diff_env = getenv("DIFF");
|
const char *diff_env = getenv("DIFF");
|
||||||
const char *diff_cmd = diff_env ? diff_env : "diff -u";
|
const char *diff_cmd = diff_env ? diff_env : "diff -U 16";
|
||||||
char *diff = g_strdup_printf("%s %s %s", diff_cmd,
|
char *diff = g_strdup_printf("%s %s %s", diff_cmd,
|
||||||
exp_sdt->asl_file, sdt->asl_file);
|
exp_sdt->asl_file, sdt->asl_file);
|
||||||
int out = dup(STDOUT_FILENO);
|
int out = dup(STDOUT_FILENO);
|
||||||
|
|
Loading…
Reference in New Issue