mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
tools: PCI: Exit with error code when test fails
This makes it easier to use pcitest in automated setups. Signed-off-by: Jean-Jacques Hiblot <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Acked-by: Kishon Vijay Abraham I <[email protected]>
This commit is contained in:
parent
9e98c678c2
commit
b71f0a0b1e
1 changed files with 2 additions and 2 deletions
|
|
@ -140,6 +140,7 @@ static void run_test(struct pci_test *test)
|
|||
}
|
||||
|
||||
fflush(stdout);
|
||||
return (ret < 0) ? ret : 1 - ret; /* return 0 if test succeeded */
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
|
@ -228,6 +229,5 @@ usage:
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
run_test(test);
|
||||
return 0;
|
||||
return run_test(test);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue