From 2a4f9dd04f9c4749268d6a9cd00a7213657f92c4 Mon Sep 17 00:00:00 2001 From: RohanKadekodi Date: Mon, 21 Jan 2019 14:49:33 -0600 Subject: [PATCH] Fixing reported issues in Ace --- ace/ace.py | 3 ++- copy_diff.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ace/ace.py b/ace/ace.py index c7415bb1..a37f71f9 100755 --- a/ace/ace.py +++ b/ace/ace.py @@ -58,7 +58,6 @@ # We currently support : creat, mkdir, falloc, write, dwrite, link, unlink, remove, rename, fsetxattr, removexattr, truncate, mmapwrite, symlink, fsync, fdatasync, sync OperationSet = ['creat', 'mkdir', 'falloc', 'write', 'dwrite','mmapwrite', 'link', 'unlink', 'remove', 'rename', 'fsetxattr', 'removexattr', 'truncate', 'fdatasync'] - #The sequences we want to reach to, to reproduce known bugs. expected_sequence = [] expected_sync_sequence = [] @@ -86,6 +85,8 @@ def SiblingOf(file): return 'B' elif file == 'B': return 'A' + elif file == 'AC' : + return 'AC' elif file == 'test': return 'test' diff --git a/copy_diff.sh b/copy_diff.sh index 7b63ffb7..7e0010cb 100755 --- a/copy_diff.sh +++ b/copy_diff.sh @@ -24,7 +24,7 @@ then fi rm build/diff* else - if [ -e build/diff* ] + if [ -n "$(ls build | grep diff)" ] then rm build/diff* echo -e "${green}${bold} : Passed test${reset}"