test: use env variable to run tests
[dpdk.git] / test / test / commands.c
index 4097a33..6649cfc 100644 (file)
@@ -103,6 +103,7 @@ static void cmd_autotest_parsed(void *parsed_result,
                        ret = t->callback();
        }
 
+       last_test_result = ret;
        if (ret == 0)
                printf("Test OK\n");
        else