Skip to content

Commit

Permalink
tests: Do not generate pcap file by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakuje committed Nov 23, 2017
1 parent 1ac2d8e commit 74bef17
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/torture.c
Expand Up @@ -815,6 +815,7 @@ void torture_setup_socket_dir(void **state)
struct torture_state *s;
const char *p;
size_t len;
char *env = getenv("TORTURE_GENERATE_PCAP");

s = malloc(sizeof(struct torture_state));
assert_non_null(s);
Expand Down Expand Up @@ -851,7 +852,9 @@ void torture_setup_socket_dir(void **state)

setenv("SOCKET_WRAPPER_DIR", p, 1);
setenv("SOCKET_WRAPPER_DEFAULT_IFACE", "170", 1);
setenv("SOCKET_WRAPPER_PCAP_FILE", s->pcap_file, 1);
if (env != NULL && env[0] == '1') {
setenv("SOCKET_WRAPPER_PCAP_FILE", s->pcap_file, 1);
}

*state = s;
}
Expand Down

2 comments on commit 74bef17

@cryptomilk
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need to disable it, could you please explain it in the commit message?

@Jakuje
Copy link
Owner Author

@Jakuje Jakuje commented on 74bef17 Dec 11, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added. I will push the changes soon.

Please sign in to comment.