diff options
author | Eryu Guan <eguan@redhat.com> | 2017-10-25 12:06:06 +0800 |
---|---|---|
committer | Eryu Guan <eguan@redhat.com> | 2017-11-10 12:33:38 +0800 |
commit | 8fd019ba7a44507af94cde38df2e49709ba4b396 (patch) | |
tree | c13a1b122a60be12644036a91f0b1abcc49a9c06 | |
parent | 7988dbbcebffe79fe524528db115e76b3c20cd90 (diff) | |
download | xfstests-8fd019ba7a44507af94cde38df2e49709ba4b396.tar.gz |
ltp/fsx: allow comments when reading operations from logs
We use '--replay-ops' option to replay operations in the specified
operation log file, but we're not allowed to add comments for the
operations in the log, which might be useful when writing regression
tests that replay a given sequence of operations.
Now treat lines starting with '#' as comments and skip them when
reading operations.
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
-rw-r--r-- | ltp/fsx.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1391,7 +1391,7 @@ read_op(struct log_entry *log_entry) goto fail; } str = strtok(line, " \t\n"); - } while (!str); + } while (!str || str[0] == '#'); if (strcmp(str, "skip") == 0) { log_entry->flags |= FL_SKIPPED; |