Skip to content

Commit

Permalink
add restore aof py test
Browse files Browse the repository at this point in the history
  • Loading branch information
bug-superman committed Oct 15, 2023
1 parent 8dc452e commit a51e8d4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/src/en/reader/aof_reader.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ It is commonly used to recover data from backup files and also supports data fla

```toml
[aof_reader]
aoffilepath="/tmp/appendonly.aof.manifest"
aoffilepath="/tmp/appendonly.aof.manifest" "or single-aof: /tmp/appendonly.aof ""
aoftimestamp="0"
```

Expand Down
2 changes: 1 addition & 1 deletion docs/src/zh/reader/aof_reader.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

```toml
[aof_reader]
aoffilepath="/tmp/appendonly.aof.manifest"
aoffilepath="/tmp/appendonly.aof.manifest" "或者单aof文件 "/tmp/appendonly.aof""
aoftimestamp="0"
```

Expand Down
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ set -e

# black box test
cd tests/
pybbt cases --verbose
pybbt cases/aof.py --verbose
#--flags modules
2 changes: 1 addition & 1 deletion tests/cases/aof.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test(src, dst):
inserter.add_data(src, cross_slots_cmd=cross_slots_cmd)
p.ASSERT_TRUE(src.do("save"))

opts = h.ShakeOpts.create_aof_opts(f"{src.dir}{get_aof_file_relative_path()()}", dst)
opts = h.ShakeOpts.create_aof_opts(f"{src.dir}{get_aof_file_relative_path()}", dst)
h.Shake.run_once(opts)
# check data
inserter.check_data(src, cross_slots_cmd=cross_slots_cmd)
Expand Down

0 comments on commit a51e8d4

Please sign in to comment.